An open API service indexing awesome lists of open source software.

https://github.com/drumkq/examplediscordbot

Example giveaway universal discord bot written in typescript
https://github.com/drumkq/examplediscordbot

discord discord-bot discord-js mongo mongoose nodej typescript

Last synced: about 2 months ago
JSON representation

Example giveaway universal discord bot written in typescript

Awesome Lists containing this project

README

          

# ExampleDiscordBot
Example giveaway universal discord bot written in typescript

# How to set up
Rename file ".env.schema" to ".env"

You only need to configure 4 fields for the bot to work properly:
1. In the TOKEN field, enter your bot's secret token;
2. In the ID field, enter your bot's client ID;
3. In the PREFIX field, enter the prefix you want for your bot;
4. In the DB_CON_STR field enter the MongoDB database address.

# Commands
All commands work only on the discord server
## Slash commands
```
giveaway - creates a new draw on the server
delete-giveaway - deletes a giveaway
finish-giveaway - completes the giveaway
join-giveaway - giveaway name
```
## Text commands
```
ping - replies "pong"
```