Generate a random amount of sentenceS
This commit is contained in:
parent
cc50384f20
commit
4e02e31c1e
@ -1,7 +1,7 @@
|
||||
from discord.ext import commands
|
||||
import core_utils
|
||||
import discord
|
||||
import markovify
|
||||
import random
|
||||
|
||||
|
||||
class Markov(commands.Cog):
|
||||
@ -21,12 +21,8 @@ class Markov(commands.Cog):
|
||||
user_model = markovify.Text(". ".join(authors_mesages))
|
||||
model_json = user_model.to_json()
|
||||
|
||||
# f = open("/tmp/model.json", "a")
|
||||
# f.write(model_json)
|
||||
# f.close()
|
||||
|
||||
dummy = []
|
||||
for i in range(10):
|
||||
for i in range(random.randint(3, 9)):
|
||||
dummy.append(str(user_model.make_sentence(max_words=25, tries=100)))
|
||||
await ctx.send(
|
||||
"Heres a markov chain based on %s's shitposts" % user.mention
|
||||
|
Loading…
x
Reference in New Issue
Block a user