mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-08-19 11:43:16 +02:00
✨ - Automated command retrieval for the spellchecker, ignoring commands reserved for the owner.
This commit is contained in:
@@ -7,8 +7,7 @@ def all_maximum(lst):
|
||||
return lst_result
|
||||
|
||||
|
||||
def spellchecker(word):
|
||||
lst = ['osu_acc','osu_lastgame','osu_profile','lol_rank','lol_lastgame','chat_set','chat_stop','issou','help']
|
||||
def spellchecker(word, lst):
|
||||
probs = []
|
||||
wo_size = len(word)
|
||||
for element in lst:
|
||||
@@ -27,4 +26,3 @@ def spellchecker(word):
|
||||
for indice in lst_maxs:
|
||||
str_words += '$' + lst[indice] + ' ?\n'
|
||||
return str_words
|
||||
|
||||
|
||||
Reference in New Issue
Block a user