Posts

Showing posts with the label discord

Making a Discord Bot in Python: How to make a toggle talk for a ChatBot

Image
Clash Royale CLAN TAG #URR8PPP Making a Discord Bot in Python: How to make a toggle talk for a ChatBot I'm trying to make a discord ChatBot in Python and I seem to have come across a problem. I'm making a toggle on and off switch to make it talk but whenever I toggle that switch it says that 'talk' is not recognized as a command. I even tried making it @client.event instead of @client.command but it wouldn't work. Please help. import discord from discord.ext.commands import Bot from discord.ext import commands import asyncio import time Client = discord.Client() client = commands.Bot(command_prefix = ":") on_talk = False @client.event async def on_ready(): print("You can talk to me now!") @client.command async def talk(message): global on_talk if message.content.upper().startswith(":TALK"): on_talk = True if message.content.upper().startswith(":STOPTALK"): on_talk = False if on_talk == False: pr...

download file to local computer sent attatched to message discord

Image
Clash Royale CLAN TAG #URR8PPP download file to local computer sent attatched to message discord after looking on the Discord.js docs i can find an answer for the question, does someone know how to do it? theres already a question the page but has no answers or comments. imagine that someone on the chat sentí an image, is there a way of the bot downloading the image or get the url of the image? thanks! Guess you didn't look too far... stackoverflow.com/questions/50435819/… – ProEvilz 1 min ago By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.