Skip to content

a discord bot written in rust. it's purpose is to monitor git repos for new commits

License

Notifications You must be signed in to change notification settings

themangomago/mango-bot-rust

Repository files navigation

Mango Bot - A Discord Bot to Monitor Git Repositories

The purpose of this bot it to monitor provided git repositories for new commits and send a notification to an specific Discord channel. This bot was made to learn Rust using the Serenity framework.

Mango Bot

Commands

  • !ping - Pong!
  • add_repo - Add a repo to the list of repos to be watched
  • del_repo - Delete a repo from the list of repos to be watched
  • list_repos - List the repos to be watched

Config

Create an .env file in the root directory of the project. Enter your client token from the Discord developer portal. Configure your desired prefix for the commands.

# Discord Bot Tokens
CLIENT_TOKEN = "xxx"
CLIENT_PREFIX = "!"

Run

Run the bot with cargo run.

Invite Bot to your Channel

Insert your client id and permissions in the url:

https://discord.com/oauth2/authorize?client_id=!!client_id!!&permissions=!!permissions!!&scope=bot+applications.commands

About

a discord bot written in rust. it's purpose is to monitor git repos for new commits

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published