ElProfessorBot is a powerful Discord bot that allows you to easily manage your discord server and play music from youtube written with DiscordGo and Mongodb.
- Play musics from youtube API
- Polls and predictions
- Delete server messages
- Welcome and auto role assign system.
- Rules managment
Mongodb and ffmpeg are required
- Ensure you have Go installed.
- Clone the repo:
git clone https://github.com/archroid/ElProfessorBot.git
- move to the project directory:
cd ElProfessorBot
- export
DISCORD_BOT_TOKEN
&YOUTUBE_API_KEY
.
export DISCORD_BOT_TOKEN={DISCORD_BOT_TOKEN}
- run mongoDb service
sudo systemctl start mongodb
- See this link to install mongoDb if you don't have it installed.
- Run the project
go run main.go
- DiscordGo Go package that provides low level bindings to the Discord chat client API (
go get github.com/bwmarrin/discordgo
) - disgolink disgolink is a Lavalink Client (
go get github.com/DisgoOrg/disgolink
) - logrus Structured logger for Go (
go get github.com/sirupsen/logrus
) - MongoDB Go Driver The MongoDB supported driver for Go. (
go get go.mongodb.org/mongo-driver/mongo
) - Ken A prototype, object-oriented and highly modular Discord application commands handler for Discordgo. (
go get github.com/zekrotja/ken
) - di Dependency injection framework for go programs (golang). (
go get github.com/sarulabs/di/v2
)
- Some parts of code are originaly from project github.com/zekroTJA/shinpuru licensed under the MIT License.