Garry's Mod

Garry's Mod

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