~spiral/myriad-example

a basic bot example using the Myriad Discord library
fix submodule
throw error if token is null
remove unused imports and whitespace

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~spiral/myriad-example
read/write
git@git.sr.ht:~spiral/myriad-example

You can also use your local clone with git send-email.

"Myriad" is the Discord library created for use with PluralKit. It can also be used separately, as is shown here.

This bot example is just a ping-pong bot: type !ping in chat, and it will respond with Pong!.

How to run

The Myriad library is in a git submodule. Run git submodule init and git submodule update to download the code.

This app looks for the token in an environment variable of TOKEN. After setting it, type dotnet run --project MyriadExample to run the bot.

License

The code present in this repository is licensed CC0 (public domain). You can read the license text in the COPYING file.

For PluralKit / Myriad library license information, please see https://github.com/xske/pluralkit#license.