runetech0 / discord-telegram-bot

Simple discord to telegram messages forward bot. It receives messages from filtered discord servers and channels and forward these messages to specified telegram channel using telegram api.
46 stars 18 forks source link

Error when running bot #7

Open mr190e opened 2 years ago

mr190e commented 2 years ago

Hi, I got this error when running the bot:

root@phasecorex-red-discordbot1:/home/discord-telegram-bot# python bot.py                                                                                                                                                                                                                   
Traceback (most recent call last):                                                                                                                                                                                                                                                          
  File "/home/discord-telegram-bot/bot.py", line 35, in <module>                                                                                                                                                                                                                            
    bot = discord.Client()                                                                                                                                                                                                                                                                  
TypeError: __init__() missing 1 required keyword-only argument: 'intents' 

Any idea how to fix it?

abe-101 commented 2 years ago

Any idea how to fix it?

It seems the bot is missing privileged intents https://discord.com/developers/docs/topics/gateway#privileged-intents

abe-101 commented 2 years ago

I've added them in https://github.com/rehmanali1337/discord-telegram-bot/pull/8

abe-101 commented 2 years ago

I can confirm that the bot works with changes in PR #8