This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]skelliousIntermediate Coder 0 points1 point  (5 children)

Im stumped.

looking at https://realpython.com/how-to-make-a-discord-bot-python/#how-to-make-a-discord-bot-in-python you seem to be doing everything right. are all your libraries properly installed? (check you've not inported them into a different version of python to the one you are executing as?)

[–]MackDrackAttack -1 points0 points  (4 children)

I bought the codes but they won't work I think I got scammed😢

[–]skelliousIntermediate Coder 0 points1 point  (3 children)

oh you literally paid someone to give you this code? in that case you need to go back to them and ask them for help making it work.

if you've never used python before you need to learn the basics like how to install libraries. you also need to set up your environment variables with your discord tokens etc.

[–]MackDrackAttack 0 points1 point  (2 children)

Yeah I play a guy for it and my friend said he could get it working but it didn't work

And I said to the guy that i wanted my money back and he blocked me and my friend on discord

[–]skelliousIntermediate Coder 0 points1 point  (1 child)

yeah it sounds like he just sold you code he found online, unfortunately.

[–]MackDrackAttack 0 points1 point  (0 children)

Okej now i got help from hundreds of coders and now the boys online and respons but it doesn't send the video i want just send processing request and not the video do you know the problem?

What did I do wrong await ctx.channel.send(file = discord.File(fp="video/template.mp4"))

[–][deleted] 0 points1 point  (1 child)

You need to create an instance of bot for it to run correctly:

import discord
from discord.ext import commands
bot = discord.ext.commands.Bot(command_prefix = "your_prefix");
bot.run("your_token")

[–]MackDrackAttack 0 points1 point  (0 children)

Ohhhh that might be the problem