Skip to content

Telegram bot for sending actual info about timetable

Notifications You must be signed in to change notification settings

litolax/TeachersTimetable

Repository files navigation

Issues

Teachers Timetable Bot

Telegram bot for sending actual info about timetable for teachers.
Report Bug · Request Feature

About the project

This telegram bot can notify teachers about their updated timetables.

Built With

Database

Getting Started

Installation

  1. Fork the git repository.
  2. Clone the repository.
  3. Install .NET 6.0.
  4. 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");
  1. Install mongoDB.
  2. Install geckodriver (for week screenshots).

Build

Linux

dotnet publish TeachersTimetable -c Release -r ubuntu.21.04-x64 -p:PublishSingleFile=true --self-contained true

Contact

Feel free to create issues, features, or pull requests.
Discord: config.json#8501
Project Link: https://github.com/litolax/TeachersTimetable

About

Telegram bot for sending actual info about timetable

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages