A basic Mastodon bot that will post random images from a given folder, written in C# using .NET Core, with no external libraries used.
This is the source code used to power the bot at @emmacatbot@botsin.space
Requirement: .NET Core SDK, version 3.1 or later.
- Compile the project. This can be done using the .NET Core SDK, by typing
dotnet build
into a command line.- Windows users can use Visual Studio 2019 to compile the solution.
- Place a
config.ini
file (example provided atconfig-example.ini
, replace the values with your own) into the output folder (likelybin/Debug/netcoreapp3.1
in the project folder) - Run the bot by typing
dotnet catbotcode.dll
into a command line.- A different configuration file can be specified on the command line;
dotnet catbotcode.dll path/to/config.ini
- A different configuration file can be specified on the command line;