ekonda / kutana

The library for developing systems for messengers and social networks
MIT License
72 stars 17 forks source link

How to change prefix? #50

Closed nukdokplex closed 4 years ago

nukdokplex commented 4 years ago

I'd not found any solutions to change bot prefix. Is it possible?

daeeros commented 4 years ago

Yes it is possible you should go along the path kutana / kutana.py on line 37 there is a setting for these prefixes

michaelkryukov commented 4 years ago

Actually, you better off settings prefix in your application code without touching the library.

app = Kutana(...)
app.config['prefixes'] = ('hey', 'bot')