mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-20 23:56:08 +03:00
Compare commits
No commits in common. "5100f7462d33cbd19ff2320d86f117564fc742cc" and "3cc7dfa233513e29ccff1c370f8d64a0202f16ff" have entirely different histories.
5100f7462d
...
3cc7dfa233
@ -23,8 +23,6 @@ public partial class JetHeraldBot
|
||||
Client = new TelegramBotClient(TelegramConfig.ApiKey);
|
||||
Me = await Client.GetMeAsync();
|
||||
|
||||
Log.LogInformation("Connected to Telegram as {username}, id:{id})", Me.Username, Me.Id);
|
||||
|
||||
Commands = new ChatCommandRouter(Me.Username, Log);
|
||||
Commands.Add(new SubscribeCommand(Db, Client), "subscribe", "sub");
|
||||
Commands.Add(new UnsubscribeCommand(Db, Client), "unsubscribe", "unsub");
|
||||
|
||||
@ -54,8 +54,8 @@ CREATE TABLE `heartevent` (
|
||||
`Event` varchar(16) NOT NULL COMMENT 'ENUM(''created'',''started'',''stopped'',''deleted'')',
|
||||
`CreateTs` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`HeartEventId`),
|
||||
KEY `idx_heartevent_TopicId` (`TopicId`,`HeartEventId`),
|
||||
KEY `idx_heartevent_Status` (`Status`)
|
||||
KEY `idx_heartevent_TopicId` (`TopicId`,`HeartEventId`)
|
||||
KEY `idx_heartevent_Status` (`Status`),
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user