Skip to content

dahliaOS/bot

Repository files navigation

WebsiteDiscordReleasesDonateDocumentation

dahliaOS Discord bot

Discord License

  • Discord bot for the dahliaOS server
  • Written in Dart using the nyxx lib

Running the bot

  1. Make sure you have Dart SDK installed
  2. Clone the repo
    git clone https://github.com/dahliaOS/bot.git
    
  3. Create a bot and obtain the token, read this guide
  4. Create a GitHub Personal Access Token, read this guide
    • This is optional and it's used for the GitHub command, if you don't want to insert your GitHub PAT and username, just leave it out, the only difference is that your API calls will be limited to 60 per hour.
  5. Find your GitHub username
  6. Insert your GitHub PAT, GitHub username and the bot token
    1. Create a .env file in the root folder
    2. Fill it in as shown below:
    TOKEN='your bot token goes here'
    GITHUB_TOKEN='your github token goes here'
    GITHUB_USERNAME='your github username goes here'
    
  7. CD into the dir
    cd bot
    
  8. Get dependencies
    dart pub get
    
  9. Run
    dart run bin/main.dart
    

Contribute

If you're wondering how to contribute to the project, please refer to CONTRIBUTING.md

License

Copyright @ 2019-2022 - The dahliaOS Authors - contact@dahliaos.io

This project is licensed under the Apache 2.0 license