Table of Contents
This project has practical acquaintance purposes with the Golang programming language. Task Manager Bot is a Discord Bot that helps you to organize your tasks.
This discord bot is built with:
To get a local copy up and running follow these simple steps.
In order to run this project you will need the following:
- Go 1.19.4 installed
- Discord account
- Configured MariaDB database
-
Go to the Discord developer portal
-
Create a new application
-
Add a bot user to the application
-
Get the token for the bot
-
Clone the repository
git clone https://github.com/oxanahr/discord-bot.git
-
Install dependencies
go mod download all
-
Create the environment variables file
.env
in the root folder and add the following:DISCORD_TOKEN="Your discord token" SERVER_GENERAL_CHANNEL_ID="Discord server general channel id" DB_USER="Your database username" DB_PASSWORD="Your database password" DB_SCHEMA="Your database schema" DB_HOST="Your database host" DB_PORT="Your database port"
To run the discord bot from root directory, execute the following command
go run main.go
The default prefix is /
(slash)
/add-task <task-name> <task-description> <priority> <assignee> <deadline>
/assign-task <task-id> <assignee>
/start-task <task-id>
/complete-task <task-id>
/my-tasks <order-by-deadline-or-priority> <deadline-current-week>
/all-tasks <unassigned> <order> <soon>
/comment <task-id> <comment-text>
If you want to contribute to this project, feel free to do so.