Fully converted to slash commands

This commit is contained in:
NikolajDanger
2021-03-31 00:38:51 +02:00
parent a8a7e5eabd
commit b345720468
50 changed files with 1102 additions and 1111 deletions

View File

@ -1,9 +1,9 @@
#import numpy as np
import random
from funcs import logThis
class Generators():
def __init__(self, bot):
self.bot = bot
# Returns a list of all letter pairs in the text
def make_pairs(self, corpus):
for i in range(len(corpus)-1):
@ -73,7 +73,7 @@ class Generators():
if new_letter == "\n":
done = True
genName = "".join(chain)
logThis("Generated "+genName)
self.bot.log("Generated "+genName[:-1])
# Returns the name
return(genName)
@ -86,7 +86,7 @@ class Generators():
# Picks one of each
genTav = random.choice(fp)+" "+random.choice(sp)+random.choice(tp)
logThis("Generated "+genTav)
self.bot.log("Generated "+genTav)
# Return the name
return(genTav)