Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlOfDuty committed Sep 6, 2018
1 parent 835a54d commit 64cb14f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DyscordBot/start.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node DiscordBot.js
node DyscordBot.js
PAUSE
2 changes: 1 addition & 1 deletion DyscordBot/start.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
screen -S SCPDiscordBot node DiscordBot.js
screen -S DyscordBot node DyscordBot.js
Binary file modified DyscordPlugin/Dyscord.smx
Binary file not shown.
5 changes: 4 additions & 1 deletion DyscordPlugin/Dyscord.sp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ public Action OnClientSayCommand(int client, const char[] command, const char[]
{
char name[128];
GetClientName(client, name, sizeof(name));

int steamid = GetSteamAccountID(client, true);

char message[1000];
Format(message, sizeof(message), "000000000000000000%s [U:1:%i]: %s", name, sArgs);
Format(message, sizeof(message), "000000000000000000%s [U:1:%i]: %s", name, steamid, sArgs);
SocketSend(datsocket, message);
}

Expand Down
2 changes: 1 addition & 1 deletion DyscordPlugin/compile.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
spcomp Dyscord.sp
copy /Y Dyscord.smx ..\..\dystopiaserver\dystopia\addons\sourcemod\plugins
copy /Y Dyscord.smx ..\..\..\dystopiaserver\dystopia\addons\sourcemod\plugins

0 comments on commit 64cb14f

Please sign in to comment.