Skip to content

Commit

Permalink
Hotfixes (#87)
Browse files Browse the repository at this point in the history
* fix incorrect sql

* add documentation for new settings

Co-authored-by: Yuriy Chebyshev <[email protected]>
  • Loading branch information
bomzheg and Yuriy Chebyshev authored Mar 17, 2021
1 parent 3d960cf commit f011d26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ moderator commands list:
* !warn, !w [@mention] - official warn user from moderator
* !info [@mention] - information about user (karma changes, restrictions, warns)


chat settings commands list:
* !enable_karmic_ro - enable restrictions on low karma reason
(need to have right for ban users for bot and user asked for that command)
* !disable_karmic_ro - disable restrictions on low karma reason
(need to have right for ban users for bot and user asked for that command)

superuser commands list:
* /generate_invite_logchat - if bot is admin in the chat of LOG_CHAT_ID from `config.py` bot generates invite link to that
* /logchat - get logchat invite link if it's generated earlier
Expand Down
1 change: 0 additions & 1 deletion migrations/03_add_settings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ CREATE TABLE chat_settings (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
chat_id BIGINT,
karmic_restrictions BOOLEAN DEFAULT false,
CONSTRAINT chat_settings_PK PRIMARY KEY (id),
CONSTRAINT chat_settings_FK FOREIGN KEY (chat_id) REFERENCES chats(chat_id)
);

0 comments on commit f011d26

Please sign in to comment.