Skip to content
This repository was archived by the owner on Jan 1, 2022. It is now read-only.

Latest commit

 

History

History

Example2-Services

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Example 2 - Services

This example separates the code into services and command modules

Things to note:

  • The Bot Token is loaded via a text file. This is one option to avoid hard-coding your token
  • Dependency Injection is used, including logging and the command handler as example services.