NihongoBot is a Telegram bot written in C# to help users learn Hiragana.
- Learn Hiragana characters
- streak tracking
- .NET Core 9.0 SDK
- A valid Telegram Bot Token
-
Clone the repository:
git clone https://github.com/dennisblokland/NihongoBot.git cd NihongoBot
-
Restore dependencies for all projects:
dotnet restore
-
Create an
appsettings.Development.json
file in theNihongoBot.Server
andNihongoBot
directory with the following content:{ "TelegramBotToken": "YOUR_TELEGRAM_BOT_TOKEN" }
-
Navigate to the
NihongoBot.AppHost
directory:cd NihongoBot.AppHost
-
Set up client assets (for admin interface):
cd NihongoBot.Client dotnet tool install -g Microsoft.Web.LibraryManager.Cli libman restore cd ..
-
Run the application:
dotnet run
To apply database migrations, follow these steps:
-
Navigate to the
NihongoBot.Persistence
directory:cd NihongoBot.Persistence
-
Add a new migration (if needed):
dotnet ef migrations add <MigrationName>
-
Apply the migrations By starting the app.
-
To remove migrations run the following command:
dotnet ef migrations remove --force
Register yourself by sending /start to the bot
We welcome contributions to NihongoBot! Please read our Contributing Guidelines for information about:
- Development setup and workflow
- Code style guidelines
- Testing requirements
- Deployment approval process
This project is licensed under the GNU GPL V3