-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markov commands now work! #55
base: master
Are you sure you want to change the base?
Conversation
…mmands, handled permissions for announcments
commented out shutdown
commented out shutdown created poll command group
Edited spacing a bit
import json | ||
import io | ||
import random | ||
import numpy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really Curious At What NUMPY is used for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's been a while since anyone's worked on this, but iirc it was basically used to select randomly from a list. I decided it would be easier to just add duplicates of a word to the list of possible words after a given word than do some other, infinitely more well thought out, solution.
To be honest if we were still working on this project we'd probably just do over everything from scratch in a more modular and well thought out fashion.
created a markov group that can read text, read massages and (un)intentionally spam chat! the way it stores the chain and such is a little odd, but it seems OK in memory usage.