✨ Fully converted to slash commands
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user