notsniped / discord-snipe-bot

A simple message content sniping Discord bot which you can run yourself!
GNU General Public License v3.0
7 stars 5 forks source link

AttributeError: module 'discord' has no attribute 'Bot' #21

Closed nightgardens closed 1 year ago

nightgardens commented 1 year ago

File "c:\Users\jcbri\Downloads\discord-snipe-bot-main\Main.py", line 20, in client = discord.Bot() # READ COMMENT AT LINE 13 FOR MORE INFO ^^^^^^^^^^^ AttributeError: module 'discord' has no attribute 'Bot'

Installed bat, pasted bot token in json, pasted username in main.py, then ran in cmd.

image

nightgardens commented 1 year ago

im idiot

notsniped commented 1 year ago

Lol it's okay.

I'll add the library directly in the next release.

notsniped commented 1 year ago

Anyway it's a wrong library issue, you should have PyCord installed instead of discord.py

python -m pip install py-cord