An easy to use multi-purpose discord bot.
- A Discord Bot Application (Guide)
1.1 Enable 'Message Content Intent', 'Presence Intent', and 'Server Members Intent' from 'Privileged Gateway Intents' on Discord Developer Portal. - Node.js v16 or higher
- A MySQL database.
- Open the terminal and run the commands below:
git clone https://github.com/Tenandrobilgi/TENAN.git
cd TENAN
npm install
- After the installation, run
npm run start
to start the bot.
config.json
:
{
"TOKEN": "",
"MAINTENANCEMODE": false,
"PROTECTEDUSERID": "",
"PROTECTEDGUILDID": "",
"PUBLISHCOMMANDS": false,
"DEFAULTPREFIX": ".",
"TIMEOUTWAITAMOUNT": 3
}
"TOKEN"
: Your bot's token.
"MAINTENANCEMODE"
: Configures bot's maintenance mode, where only the user with the "PROTECTEDUSERID"
will be able to run the commands.
"PROTECTEDUSERID"
: The user that can bypass maintenance mode and certain commands.
"PROTECTEDGUILDID"
: The guild that can bypass maintenance mode.
"PUBLISHCOMMANDS"
: Whether or not the bot's slash commands will be published each time the bot logins in.
"DEFAULTPREFIX"
: Bot's default prefix.
"TIMEOUTWAITAMOUNT"
: The amount of time that users have to wait to run a command again.
mysqlconfig.json
:
{
"HOST": "",
"USER": "",
"PASSWORD": "",
"DATABASE": "",
"PORT": ""
}
Fill out the values above with your database information. (Examples and more info).
Before running the bot/inviting it to a server, connect to your database either using an app or your terminal/client and run the command below:
CREATE TABLE `[YOURDATABASENAME]`.`serverdatas` ( `serverId` VARCHAR(20), `serverPrefix` VARCHAR(2), `serverModules` TEXT(500), `serverLogChannelID` VARCHAR(20), `serverLogEnabled` VARCHAR(8), `customResponse` VARCHAR(8) );
The default prefix is: "."
- Fun Commands
.anime-source, .cake, .dadjoke, .flip, .meme, .randomchoose, .reddit, .search-image, .simp-rate
- Moderation Commands
.clear, .kick, .ban, .unban
- NSFW Commands
.rule34, .sex, .randomporn
Using the .settings
command, you can configure the command modules and various other aspects of the bot for a server:
.settings prefix <newprefix>
= Change the bot's prefix.
.settings configure <module> <true/false>
= Enable or disable a command module.
.settings customresponse <true/false>
= Enable or disable the custom response.
.settings log configure <true/false>
= Enable or disable the bot logging.
.settings log channel <channel/channelId>
= Set the log channel.
You can fork the repository, create a feature branch and submit a pull request if you'd like to.