Garry's Mod

Garry's Mod

TTT Discord Bot
56 Comments
Hoshic. May 14, 2021 @ 3:53am 
Hey, ist es möglich zu adden, dass spectator auch gemuted werden?
scal21 Nov 15, 2020 @ 11:51am 
@deckenid: "-allowlocalhttp" in der Start-Datei hat funktioniert. Danke Dir.
Jeremiah Johnson Nov 3, 2020 @ 3:23pm 
Can someone make a tutorial video on how to set this up step by step?
Tim Tam Sep 18, 2020 @ 1:20am 
Hey man, i have a Dedicated Server made for TTT via SteamCMD. How can i use this for my server?
The Gay Bacon Jul 22, 2020 @ 8:43pm 
deckenid's trick worked for me. Also using the addon from Github didnt work either.
Rob / Litch Jul 4, 2020 @ 5:31am 
Does this still work? having a bit of an issue with it. Went through all of your guide, step by step, the addon itself on the server is working flawlessly, the bot itself will not mute anyone in the server/channel selected. can't think how to fix it at all, any ideas?
fab0l1n Jul 2, 2020 @ 7:04am 
Dockerized it for myself.
In case someone needs it: https://hub.docker.com/r/fab0l1n/ttt_discord_bot
deckenid Jun 24, 2020 @ 3:03am 
for people who have the error
Err: invalid url put -allowlocalhttp in the server start option that could help
deckenid May 27, 2020 @ 9:19am 
GROSSARTIGES ADDON!
Princess Beach Apr 16, 2020 @ 2:55pm 
Is there any way to get this to work with a remote node server instead of local? I tried replacing local in the lua file with the ip but it didn't seem to work?
merlinator5 Apr 16, 2020 @ 8:42am 
Wenn ich im Spiel !discord und dann meinen Discord Namen eingebe steht im Chat weder der Befehl noch dass er sich connected hat. woran könnte das liegen?
-#Dan- Mar 27, 2020 @ 6:30am 
I'm not able to connect my game to my discord. when i type !discord xxxx nothing happens.

Server console: <>" STEAM USERID validated
TTT initializing convar settings...
L 03/27/2020 - 14:27:46: "-#Dan-<2><STEAM_0:1:50826596><>" entered the game
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url

Bot console:

http interface is ready :)
Bot is ready to mute them all! :)


Both servers are running on the same machine. Any hint why server not able to find the discord bot?
-#Dan- Mar 27, 2020 @ 6:11am 
updated nodejs :TheSmiley:
thx a lot
marcel  [author] Mar 26, 2020 @ 3:54pm 
You probably use a too old nodejs version.
-#Dan- Mar 25, 2020 @ 9:23am 
Hey I'm getting errors while starting the bot. here is my terminal output
daniel@ubuntu-daniel:~/ttt_discord_bot/discord_bot$ node .
/home/daniel/ttt_discord_bot/discord_bot/index.js:3
const {log,error} = console;
^

SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
Dan Mar 24, 2020 @ 8:13pm 
To anyone with the err: invalid url issue, comments here might help: https://github.com/marceltransier/ttt_discord_bot/issues/6
DrExpress Mar 21, 2020 @ 3:39am 
Hello,
Im using the instant DL from the workshop for my server for the addons so i dont get config files etc.
Ive downloaded your stuff from github and put the ttt_discord_bot into the garrysmod folder and the moved the gmod_addon into the addons fodler.
Unfortunatly if im trying to sync my disocrd with steam account with the !discord command nothing happens.
Ive created the discord bot, added the 2 tokens and the 1 id into the config.json and startetd it with node . after.
But still not working.
Thanks for helping me out
Hei Mar 18, 2020 @ 9:37pm 
@marcel.js any way i could get help with an error? it prints http interface is ready :)
Bot is ready to mute them all! :)
and then runs into an error.
TomRiddle Mar 11, 2020 @ 1:31pm 
@yeletz i would love to, working on a ttt server and this is an essential bot for us
I would love to get this to work
my discord is NaughtyBoii#0840
thundercock Mar 11, 2020 @ 1:20pm 
NaughtyBoi Wanna join the testing ?
TomRiddle Mar 11, 2020 @ 2:59am 
HI all, i have followed the steps but i cannot get this to work
at all. has anyone managed to get it working if so please hop on discord with me NaughtyBoii#0840.
thundercock Mar 5, 2020 @ 12:16pm 
Add me on discord if you want to speak furthter
Gordon Wurly#0928
thundercock Mar 5, 2020 @ 12:15pm 
marcel.js
Yes definitely I'd join or host a game. I have a good workshop collection too.
marcel  [author] Mar 5, 2020 @ 9:34am 
hi, hm. apparently there are some bugs to fix. is there a group of ttt players (english or german speaking) who let me join? 'cause i cant motivate myself to touch my 2 years old code if i'm not ttt hyped. and having a group to play with is fun and makes testing easier. :)
hawky_ Jan 24, 2020 @ 2:59am 
too bad the guide is for linux
thundercock Jan 17, 2020 @ 10:49am 
I guess you should implement your own discord bot to your server
Fummo Jan 13, 2020 @ 2:55pm 
How would I go about doing this? I've hit so many roadblocks trying to make this work. I first looked up what is suggested below but that will not work. I then tried using the Hostname of my PC but that didn't work either. So I went into my router settings and port forwarded the correct port and used my public IP but still no luck... I would very much like to make this work as I have 2 servers that it would work great on.
timschumi Dec 16, 2019 @ 3:08am 
To everyone who is having URL issues: Garry's Mod started to hard-block requests to localhost (and the entirety of all local subnets) in a recent update for whatever reason. From the disassembly, it appears that every URL containing "://localhost", "10.", "172.16.", "192.168.", and "127." is blocked with the error "invalid url". One possible workaround (as far as I can see) is to add an alias for 127.0.0.1 to your system's hosts file, and setting that as the `discordbot_host`.
Inujin Nov 25, 2019 @ 2:13pm 
Der bot geht nicht mehr pls fix
Samus Sep 16, 2019 @ 12:53pm 
I am running this on windows 10 but this doesn't seem to be working. I have had a look and doesn't seem anyone else is having the same issue. Not sure why it is saying invalid URL when the bot is running. Any help appreciated, thanks!

[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: invalid url
thundercock Sep 13, 2019 @ 11:31am 
I do everything except the ssh. Im running it on windows 10. I create the server. Put the addon in the server. I start the bot by using node . and it says bot is ready to mute them all. I go in-game and the game says "[TTT Discord Bot] You are not connected with discord. Write '!discord DISCORDTAG' in the chat. E.g. '!discord marcel.js#4402' I write !discord mytag in the chat but nothing happens. I need help with this.
thundercock Sep 12, 2019 @ 2:50pm 
Can you make a video of the tutorial? I found it very confusing and having a hard time trying to do it.
DrExpress Aug 1, 2019 @ 3:12am 
ich hab da nur was gefunden das da irgendwas nicht geupdated wurde. auf jedenfall jedes mal wenn ich nodejs und npm installieren will kommt nur error 404 side not found :o
Alf21 Jul 31, 2019 @ 6:11am 
Node.js hat nichts mit dem Add-on zu tun ^^ Google ist da nen "guter" Ansprechpartner...
DrExpress Jul 28, 2019 @ 8:09am 
Hi,
Ich habe das problem, dass ich Node.js und npm nicht installiert bekomme. Ist das nur bei mir so oder ist das auch bei anderen bekannt ?
Michi Jul 8, 2019 @ 8:33am 
Dead players should be moved to a different channel with other dead players. It would be cool!!
Goa T Roger Jan 19, 2019 @ 12:50pm 
Sieht man auf Discord oder im Overlay wer gemutet ist?
Game Vault Jan 5, 2019 @ 12:47am 
Schade das node.js nicht bei nitrado geht.
★ Nighty Sep 2, 2018 @ 6:03am 
sher nettes addon allerdings entmutet der manchmal erst nach round over manchmal direkt nachdem alle tot sind is das ein konflikt mit nen anderen addon oder normal?
robthew Sep 2, 2018 @ 3:02am 
Funktioniert das auch über einen Peer to peer ,,Server''?
marcel  [author] Jun 3, 2018 @ 12:09pm 
Theoretisch schon. Dazu habe ich in der Feedback Diskussion mal was geschrieben: https://steamcommunity.com/workshop/filedetails/discussion/1350367721/1697169163415778437/#c1696046976475626062

Aber wie gesagt arbeite ich grade an einer Version, bei der kein Nodeserver mehr benötigt wird und der Discordbot direkt via Websockets angesprochen wird.
The101 Jun 1, 2018 @ 4:53pm 
Nope ich hatte mich schon gewundert wie der Node server den TTT Server erkennen soll. Dieser läuft auf einem anderem Server. Oder gibt es da eine möglichkeit das anzupassen ?
Winn Jun 1, 2018 @ 12:14am 
this is really cool!
marcel  [author] May 31, 2018 @ 10:06am 
I'm currently working on a new version of the bot without the need of a nodejs server. That should avoid problems and makes the project easier to install and more compact.
marcel  [author] May 30, 2018 @ 9:32pm 
Ist der Nodejs bot an und auf dem selben Server wie der Gameserver?
The101 May 27, 2018 @ 9:43am 
Hat einer eine Idee für mich habe soweit alles zum laufen bekommen. Wenn ich den Befehl !discord ..... eingebe kommt in der Konsole nur
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: unsuccessful
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: unsuccessful
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: unsuccessful
[TTT Discord Bot] Request to bot failed. Is the bot running?
Err: unsuccessful

Hab ich was vergessen ?

Das ganze läuft auf Linux und der Bot läuft in Discord Nur das Spiel erkennt irgendwie den Bot nicht
BloodBlaze May 25, 2018 @ 11:01am 
Ja aber das mit der SSH versteh ich nicht
marcel  [author] May 25, 2018 @ 11:01am 
Hast du das Guide gelesen? Mit Windows geht das genauso.
BloodBlaze May 24, 2018 @ 12:48pm 
wie soll ich das machen wenn man windows hat?
Fesiug Apr 29, 2018 @ 12:48pm 
:thinking: