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

Bot works fine in --test on terminal, but doesnt want to deploy to discord #9

Closed Awsomedude0361 closed 2 years ago

Awsomedude0361 commented 2 years ago

I keep getting this error when I try and run 'main.py --token "insert token"'

Traceback (most recent call last): File "C:\Users\Akshay\Downloads\Gravital-master\main.py", line 57, in main() File "C:\Users\Akshay\Downloads\Gravital-master\main.py", line 48, in main client = ChatBot(args.maxlines) File "C:\Users\Akshay\Downloads\Gravital-master\Bot\bot.py", line 18, in init super().init() TypeError: Client.init() missing 1 required keyword-only argument: 'intents'

But it works perfectly fine when I do 'main.py --test' So im sure my trained model works.

Awsomedude0361 commented 2 years ago

Hahaha, nvm I fixed it after a bit of scouring through the code

The discord.py was 1.7.3 because I installed it through requirements.txt but the code was coded in discord.py 2.0.0

johnnymcmike commented 2 years ago

Will update requirements.txt, thanks for letting me know!