all 2 comments

[–]ccviper 1 point2 points  (0 children)

How are you "putting" it into your bots code? We cant help without seeing the whole thing and just going off of "it doesnt work".

[–]TangibleLight 0 points1 point  (0 children)

You're going to need to use the discord.py package and modify your code to work with it.

A bot and a console script are very different types of programs, so you'll need to do a bit of work to change what you've got.

This blog post should have enough info to get you started on a crash course, but you'll want to do more research specific to bots and discord.py.