Telegram bot for sending actual info about timetable for teachers.
Report Bug
·
Request Feature
This telegram bot can notify teachers about their updated timetables.
- Fork the git repository.
- Clone the repository.
- Install .NET 6.0.
- Create a
config.json
file in the root program directory. Example:{ "DbName": "", "Host": "", "Port": 27017, "AuthorizationName": "", "AuthorizationPassword": "", "Token": "", "Administrators": [ ... ], "Teachers": [ ... ] }
- "Administrators: an array of Telegram IDs."
- "Teachers: an array of teacher records."
- "To retrieve this array, you can use the following C# code:
using System.Text.Json;
const string inputString = "";/teachers list via string with separator ,
var teacherArray = inputString.Split(new[] { "," }, StringSplitOptions.None);
var jsonData = JsonSerializer.Serialize(new { Teachers = teacherArray });
File.WriteAllText("Teachers.json", jsonData);
Console.WriteLine("Data has been written to Teachers.json");
- Install mongoDB.
- Install geckodriver (for week screenshots).
dotnet publish TeachersTimetable -c Release -r ubuntu.21.04-x64 -p:PublishSingleFile=true --self-contained true
Feel free to create issues, features, or pull requests.
Discord: config.json#8501
Project Link: https://github.com/litolax/TeachersTimetable