d# deadchatxdd dead chat xdd is a Discord bot that will send a "dead chat xd" meme gif if a channel is inactive for a certain amount of time.
Make sure the bot has Embed Links permissions, otherwise it will not be able to embed gifs.
The enable, disable, and edit commands require you to have Manage Channels permissions to use.
@dead chat xd help
- Outputs the help message, which shows a list of commands and info about the bot.@dead chat xd query
- Tells you if dead chat xd is enabled in this channel; and if it is, how long the timer is.@dead chat xd enable <time>
- Enables dead chat xd in this channel. You must replace with the amount of time this channel should be inactive for the bot to activate. For example,enable 2m
will activate the bot if no messages are sent for 2 minutes. Use the letters s, m, h, and d to specify seconds, minutes, hours, and days.@dead chat xd disable
- Disables dead chat xd in this channel.@dead chat xd edit <time>
- Use this to edit the timer for this channel. Same instructions as the enable command.
Once the timer goes off and the bot activates, it will send one of the following gifs: 1 (highest chance), 2, 3, 4, 5, 6, 7, 8
If you have a bug to report or an idea to suggest, use the issues page!
If there's a critical issue, such as the bot not being able to contact the database, please send me a Discord DM if you can (Saucy#6942) so I can fix it ASAP.
If you want to host a version of this bot yourself, you'll need the latest versions of Node.js, npm, and MySQL. These instructions assume you're using Linux and have some experience with this kind of stuff.
This bot uses MySQL as a database.
Before you try to start the bot, you need to create a database and add this table to it:
CREATE TABLE channels (channel VARCHAR(18), timer INT(10));
- Go to where you want the bot stored, clone the repository, and go into the directory
git clone https://github.com/saucylegs/deadchatxd
cd deadchatxd
- Install node.js dependencies
npm install
- Start the bot.
TOKEN='<discord bot token>' ACTIVITY='<discord activity>' MYSQL_HOST='<host ip>' MYSQL_USER='<username>' MYSQL_PASSWORD='<password>' MYSQL_DATABASE='<database>' node deadchatxd.js
<TOKEN>
is your Discord bot token that you get from the Discord developer dashboard. <ACTIVITY>
is optional, that's what shows up on Discord as the game your bot is playing. <MYSQL_HOST>
is the IP address of the MySQL server you're using, if it's running on the same machine as the bot, you can just use localhost. <MYSQL_USER>
and <MYSQL_PASSWORD>
is the username and password your bot will use to log in to the MySQL database. <MYSQL_DATABASE>
is the name of the database where the table you created earlier is stored.