Merge pull request 'fix' (#7) from master into dev
Reviewed-on: https://gitea.chocomarsh.com/self/b-jokes/pulls/7
This commit is contained in:
commit
3fa0b815f3
1
main.py
1
main.py
@ -55,6 +55,7 @@ def bot():
|
|||||||
text = payload.get('text')
|
text = payload.get('text')
|
||||||
if not text:
|
if not text:
|
||||||
return
|
return
|
||||||
|
text = text.lower()
|
||||||
for word in configurator.get_config('words'):
|
for word in configurator.get_config('words'):
|
||||||
if word in text:
|
if word in text:
|
||||||
mes = 'Держи шутку!\n' + get_random()
|
mes = 'Держи шутку!\n' + get_random()
|
||||||
|
Loading…
Reference in New Issue
Block a user