Garry's Mod

Garry's Mod

TTT Discord Bot
56 kommentarer
Hoshic. 14. maj 2021 kl. 3:53 
Hey, ist es möglich zu adden, dass spectator auch gemuted werden?
scal21 15. nov. 2020 kl. 11:51 
@deckenid: "-allowlocalhttp" in der Start-Datei hat funktioniert. Danke Dir.
Jeremiah Johnson 3. nov. 2020 kl. 15:23 
Can someone make a tutorial video on how to set this up step by step?
Tim Tam 18. sep. 2020 kl. 1:20 
Hey man, i have a Dedicated Server made for TTT via SteamCMD. How can i use this for my server?
The Gay Bacon 22. juli 2020 kl. 20:43 
deckenid's trick worked for me. Also using the addon from Github didnt work either.
Rob / Litch 4. juli 2020 kl. 5:31 
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 2. juli 2020 kl. 7:04 
Dockerized it for myself.
In case someone needs it: https://hub.docker.com/r/fab0l1n/ttt_discord_bot
deckenid 24. juni 2020 kl. 3:03 
for people who have the error
Err: invalid url put -allowlocalhttp in the server start option that could help
deckenid 27. maj 2020 kl. 9:19 
GROSSARTIGES ADDON!
Princess Beach 16. apr. 2020 kl. 14:55 
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 16. apr. 2020 kl. 8:42 
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- 27. mar. 2020 kl. 6:30 
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- 27. mar. 2020 kl. 6:11 
updated nodejs :TheSmiley:
thx a lot
marcel  [ophavsmand] 26. mar. 2020 kl. 15:54 
You probably use a too old nodejs version.
-#Dan- 25. mar. 2020 kl. 9:23 
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 24. mar. 2020 kl. 20:13 
To anyone with the err: invalid url issue, comments here might help: https://github.com/marceltransier/ttt_discord_bot/issues/6
DrExpress 21. mar. 2020 kl. 3:39 
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 18. mar. 2020 kl. 21:37 
@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 11. mar. 2020 kl. 13:31 
@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
11. mar. 2020 kl. 13:20 
NaughtyBoi Wanna join the testing ?
TomRiddle 11. mar. 2020 kl. 2:59 
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.
5. mar. 2020 kl. 12:16 
Add me on discord if you want to speak furthter
Gordon Wurly#0928
5. mar. 2020 kl. 12:15 
marcel.js
Yes definitely I'd join or host a game. I have a good workshop collection too.
marcel  [ophavsmand] 5. mar. 2020 kl. 9:34 
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_ 24. jan. 2020 kl. 2:59 
too bad the guide is for linux
17. jan. 2020 kl. 10:49 
I guess you should implement your own discord bot to your server
Fummo 13. jan. 2020 kl. 14:55 
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 16. dec. 2019 kl. 3:08 
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 25. nov. 2019 kl. 14:13 
Der bot geht nicht mehr pls fix
Samus 16. sep. 2019 kl. 12:53 
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
13. sep. 2019 kl. 11:31 
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.
12. sep. 2019 kl. 14:50 
Can you make a video of the tutorial? I found it very confusing and having a hard time trying to do it.
DrExpress 1. aug. 2019 kl. 3:12 
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 31. juli 2019 kl. 6:11 
Node.js hat nichts mit dem Add-on zu tun ^^ Google ist da nen "guter" Ansprechpartner...
DrExpress 28. juli 2019 kl. 8:09 
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 8. juli 2019 kl. 8:33 
Dead players should be moved to a different channel with other dead players. It would be cool!!
Goa T Roger 19. jan. 2019 kl. 12:50 
Sieht man auf Discord oder im Overlay wer gemutet ist?
Game Vault 5. jan. 2019 kl. 0:47 
Schade das node.js nicht bei nitrado geht.
★ Nighty 2. sep. 2018 kl. 6:03 
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 2. sep. 2018 kl. 3:02 
Funktioniert das auch über einen Peer to peer ,,Server''?
marcel  [ophavsmand] 3. juni 2018 kl. 12:09 
Theoretisch schon. Dazu habe ich in der Feedback Diskussion mal was geschrieben: https://psteamcommunity.yuanyoumao.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 1. juni 2018 kl. 16:53 
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 1. juni 2018 kl. 0:14 
this is really cool!
marcel  [ophavsmand] 31. maj 2018 kl. 10:06 
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  [ophavsmand] 30. maj 2018 kl. 21:32 
Ist der Nodejs bot an und auf dem selben Server wie der Gameserver?
The101 27. maj 2018 kl. 9:43 
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 25. maj 2018 kl. 11:01 
Ja aber das mit der SSH versteh ich nicht
marcel  [ophavsmand] 25. maj 2018 kl. 11:01 
Hast du das Guide gelesen? Mit Windows geht das genauso.
BloodBlaze 24. maj 2018 kl. 12:48 
wie soll ich das machen wenn man windows hat?
Fesiug 29. apr. 2018 kl. 12:48 
:thinking: