johnnymcmike / Gravital

A Discord AI Chatbot that uses GPT-2 and aitextgen for fast, believable responses that you can train on your own discord server's message history
MIT License
34 stars 5 forks source link

Fixing crashes seen with latest code plus latest discord.py and Python v3.9.13 #15

Closed katemonster33 closed 1 year ago

katemonster33 commented 2 years ago

Latest Discord.py requires Intents to be passed in when initializing Client. In Python v3.9 the function ".flatten()" is no longer a thing, changed the syntax around chat.message.history() to return properly instead of causing a syntax error.

johnnymcmike commented 1 year ago

hi, sorry i haven't responded, been busy past few months. does this PR add any new requirements for your setup or environment that I should add to the docs? or will using the same (with updated packages of course) environment and CLI arguments just work? if the latter then this LGTM and ill just click that green button :)

katemonster33 commented 1 year ago

Hi! Havent checked this in a long time. No new requirements or command line switches, just fixing errors I saw when I attempted to use this repo with latest discord.py :)

VelocityRa commented 1 year ago

Bump? This should be merged.

johnnymcmike commented 1 year ago

didn't get the notification for that followup comment a few weeks ago sorry. thank you very much @katemonster33 !