A simple bare-bones discord bot, with some useful commands out of the box.
- Clone this repository and
cd
into it. - Copy
example.env
as.env
and configure your.env
. - Then simply run
docker build -t container-name .
anddocker run container-name
.
This project was created using bun init
. Bun is a fast all-in-one JavaScript runtime.
- Clone this repository and
cd
into it. - Run
cp example.env .env
and configure.env
. - Run
bun install
. - Run
bun start
.
By default this bot will automatically create a new channel called weaver
(if not already created) in which, it will store all of it's configuration. You can change this name in your .env
file. Make sure this channel is only accesible to admins/mods.
Moves pinned messages to another channel.
Configure a role.
role
(required) Mentionable role to configure. If this is the only option, the configuration will be removed.emoji
Assigns an emoji to this role.
Configure a message.
message
(required) Message ID, if this is the only option, the configuration will be removed.emojis
assigns a space separated list of emojis to the message.
Makes the bot react to a message with a list of emojis.
message
(required) Message ID, must exist in current channel.emojis
(required) Spaced separated list of emojis.
Deletes all channels which names match the pattern. If a channel is a category, it will delete all its children along with it. Before deleting, it will show you the channels and ask you for confirmation before proceeding.
pattern
(required) A regular expresion.
Run tests by simply running:
bun test