bot.py should be just commands now

This commit is contained in:
expect 2025-06-21 12:00:49 +02:00
parent 221b8c70a3
commit e130cdfd93
3 changed files with 14 additions and 13 deletions

13
bot.py
View file

@ -21,7 +21,7 @@ from modules.central import ping_server
from modules.translations import *
from modules.markovmemory import *
from modules.version import *
from modules.messages import *
from modules.sentenceprocessing import *
print(splashtext) # you can use https://patorjk.com/software/taag/ for 3d text or just remove this entirely
check_for_update()
@ -200,17 +200,6 @@ async def talk(ctx, sentence_size: int = 5):
else:
await send_message(ctx, f"{get_translation(LOCALE, 'command_talk_generation_fail')}")
def improve_sentence_coherence(sentence):
sentence = sentence.replace(" i ", " I ")
return sentence
def rephrase_for_coherence(sentence):
words = sentence.split()
coherent_sentence = " ".join(words)
return coherent_sentence
bot.help_command = None

View file

@ -40,5 +40,5 @@ song = os.getenv("song")
arch = platform.machine()
slash_commands_enabled = False
latest_version = "0.0.0"
local_version = "0.15.1"
local_version = "0.15.2"
os.environ['gooberlocal_version'] = local_version

View file

@ -54,3 +54,15 @@ def preprocess_message(message):
tokens = word_tokenize(message)
tokens = [token for token in tokens if token.isalnum()]
return " ".join(tokens)
def improve_sentence_coherence(sentence):
sentence = sentence.replace(" i ", " I ")
return sentence
def rephrase_for_coherence(sentence):
words = sentence.split()
coherent_sentence = " ".join(words)
return coherent_sentence