this project is kinda dead bc the maintainer (me lol) doesnt maintain anything unfortunatly..
there is a fork with even more features like a gui and stuff. and better code!
https://github.com/manix84/discord_gmod_bot
thats why open source is awesome :) thx manix84 for continuing this project!
Dead players can't speak!
... and that's basically what this bot does.
This is a powerful discord bot that mutes dead players in TTT (Garry's Mod - Trouble in Terrorist Town)
If you need a step-by-step tutorial, follow my guide at steam
- You have to have allready installed a Garry's Mod Server with the TTT Gamemode
- You must have Nodejs installed
-
Clone this repository (to e.g. your home folder) and install the requirements
cd ~ git clone https://github.com/marceltransier/ttt_discord_bot.git cd ttt_discord_bot npm install --prefix ./discord_bot/
-
Rename the
config.json.example
inconfig.json
-
Create Discord Bot, invite him to your server and paste the token in the config
-
if you don't know how to, follow this guide
-
insert the bot token at
discord -> token
in the config.json -
grant the bot the permissions to mute members
-
-
Insert the Guild (Server) id and the channel id in the config
-
if you don't know how to get these id's, follow this guide
-
insert the guild id at
discord -> guild
and the cannel id of the voice channel in wich the bot should mute dead players atdiscord -> channel
in the config.json
-
-
Add the addon to the garrysmod server
-
Move the
gmod_addon
folder to garrysmod/addons and name it suitable e.g.ttt_discord_bot
-
Or add the workshop object to the servers collection
-
- Start the bot by runing the node command with the
ttt_discord_bot/discord_bot/
directory - Connect your Steam Account with the bot by typing
!discord YourDiscordTag
in the ingame chat. E.g!discord marcel.js#4402
. If you're lazy and there is nobody else with your discord discriminator (#4402
) in the ttt channel, it's enough if you use this. E.g.!discord 4402
- If you're in the configured voice channel, the game state is in progress, you're connected with discord and you die in TTT, the bot will mute you!
- I used discord.js in this project. Thanks for the easy opportunity writing a discord bot in javascript!
- Thanks for the great Garry's Mod gamemode Trouble in Terrorist Town I made this bot for.
- Fork it (https://github.com/marceltransier/ttt_discord_bot/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details