Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Latest commit

 

History

History
45 lines (33 loc) · 1.59 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.59 KB

Definity Bot

Discord bot for server moderation.
Primarily built by @sudocode1.

What does it do?

This bot has all the moderation tools required for our Discord server. This includes banning, kicking, a warning system and a few more tools.
Feel free to contribute!

Self-hosting

This bot is intended for use in one server, not across multiple servers.

Requirements

  • Node.js v15 (not tested on v14-)
  • discord.js NPM package
  • The bot files
  • SERVER MEMBERS INTENT ENABLED
  • token.json

Content of token.json:

{
    "BOT_TOKEN": "YOUR_BOT_TOKEN",
    "WEBHOOK_ID": "YOUR_DEBUG_WEBHOOK_ID",
    "WEBHOOK_TOKEN": "YOUR_DEBUG_WEBHOOK_TOKEN"
}

WEBHOOK_ID and WEBHOOK_TOKEN are required if you enable debug in the config.


We recommend that you change some elements of the code that are not editable in the config yet.

A primary example of this is ID_CHECK in ban, kick, warn and unwarn. This should be your bots id.

Another example is bot.user.setActivity (ClientUser#setActivity).

Contributing

Contributions are welcome! Just make a pull request and we'll check if your code is useful. If it is, we'll probably add it!

If we deny your PR, we will always give a proper reason.

If your contribution gets denied, don't feel disheartened! You can always try adding something else that could be better for the bot.