Skip to content

garbage-collectors-development/GCBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Garbage Collector Bot

The official discord bot for Garbage Collectors Discord. This bot facilitates discussion and Q/A in our programming channels.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Installing

Start by cloning this repository.

git clone https://github.com/garbage-collectors-development/GCBot.git

Then setup you environment variables, such as your discord bot token or database strings. These can be set in the terminal or in your run configuration if using Visual Studio or Rider/IntelliJ.

export TOKEN="{your_token}"
export CONNECTIONSTRINGS_DATABASE="{database_conn_string}"
export ENVIRONMENT="Development"

if you prefer to store your token using the secrets tool (which stores the token in a secure file)

dotnet user-secrets set "TOKEN" "{your_token"} --project "GCBot.Container"

These environment variables will override any configuration settings specified in the appsettings files.

The precedence of config settings goes from lowest to highest:

  • appsettings.json
  • appsettings.Production.json | appsettings.Development.json
  • environment variables
  • user-secrets

Running the tests

Unit Tests

End to End Tests

Coding Style Tests

Deployment

When deploying, make sure to set your environment variable for ENVIRONMENT="Production".

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Julian - Project Creator, Backup Reporting - caveofjulian
  • Jeremy Guinn - Configuration, Attachment Management - JeremyGuinn

See also the list of contributors who participated in this project.

License

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details

Acknowledgments

  • Starwalker#0495 for assisting in project architecture

About

Discord bot for the Garbage Collectors Discord community

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages