Помогите сделать так что-бы spellchecker читал текст из message.content (Discord.py) И выводил правильные варианты в чат

from spellchecker import SpellChecker
from discord import message
import config as cfg
import time
import logging

class vs(discord.Client):
    async def on_ready(self):
        print('Бот', self.user , 'запушен.')

    async def on_message(self, message):
        if message.author == self.user:
            return

        if message.content == '/help':  # Помошь (список)
            await message.channel.send('HELP BOT \n/spam start для начала спама запушенными ботами,\n\n/spam st для статуса робочих ботоов')

        if message.content == '/spam start':  # Старт ботов и старта спама
            await message.channel.send('Sapm atack start (через 5 секунд запуск всех ботов)')
            time.sleep(5)
            await message.channel.send('?s')# main.py
            time.sleep(0.6)
            await message.channel.send('|s') # sap.py
            time.sleep(0.6)
            await message.channel.send(',s') # spam.py
            time.sleep(0.6)
            await message.channel.send('\s') # spammer.py
            time.sleep(0.6)
            await message.channel.send('.s') # sp.py
            while(True):
                time.sleep(0.7)
                await message.channel.send('@everyone')
        elif message.content == '/spam st':  # Статус ботов (фейк)
            await message.channel.send('Status: 5 ботов в онлайне и роботают нармально')

        # could add command line arguments to set the parameters of the spell
        # check class; setup what type of information to present back, etc.
        spell = SpellChecker()
        while (True):
            word = (.message.content)
            if word == '':  # not sure, but need a way to kill the program...
                break
            word = word.lower()
            if word in spell:
                await message.channel.send("'{}' пишется правильно!".format(word))
            else:
                cor = spell.correction(word)
                #await message.channel.send("Лучшее написание для '{}' является '{}'".format(word, cor))

                await message.channel.send("Если этого недостаточно; вот все возможные слова-кандидаты:")
                await message.channel.send(spell.candidates(word))        
            break

client = vs()
client.run(cfg.tk)

Ответы (0 шт):