Mastodon Bot Template
- .net SDK v7+
- A Mastodon account created for your bot (make sure you tick off that it's a bot on the profile)
-
Do a .net restore
dotnet restore
-
If debugging locally, copy
appsettings.json
and rename the resulting file aslocal.appsettings.json
-
In
appsettings.json
/local.appsettings.json
, fill in the following details:appName
: A unique name for your bot on the instanceinstance
: The Mastodon instance on which your bot livesemail
: The email account associated with your botpassword
: The password for your bot
The included functionality is currently intentionally basic. The bot will respond with one of five random phrases if tagged and follow the user. The hooks are there to extend this functionality however you see fit.