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

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