Skip to content

add karma operators - #149

Merged
Ethosa merged 1 commit into
masterfrom
python/feature/add_bot_operator_synonims
Nov 17, 2022
Merged

add karma operators#149
Ethosa merged 1 commit into
masterfrom
python/feature/add_bot_operator_synonims

Conversation

@boolrozy

Copy link
Copy Markdown

No description provided.


# Downvotes disabled for users with negative karma
if operator == "-" and self.current_user.karma < 0:
negative_operators = ['-', 'False', 'No']

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Стоит это вынести в конфиг

# Collective vote
elif amount == 0:
if operator == "+":
positive_operators = ['Thank you', 'Спасибо', 'Благодарю', '+', 'True', 'Yes']

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И это тоже

@FreePhoenix888

FreePhoenix888 commented Mar 31, 2022

Copy link
Copy Markdown
Member

@boolrozy boolrozy closed this Nov 3, 2022
@boolrozy boolrozy reopened this Nov 3, 2022
@Ethosa
Ethosa merged commit ba1e79b into master Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically add and remove people to and from chat with 2+ karma Add recognition of "+" and "-" synonims

3 participants