say.py
import discord
from discord.ext import commands
token = "" #Please specify the token
client = commands.Bot(command_prefix="!") #Set prefix(!Change the part to your liking(In the case of the example!say <Become a message>))
client.remove_command('help') #I don't need the help command, so delete it
@client.command()
async def say(ctx, *, message):
await ctx.send(message)
@client.command()
async def channelsay(ctx, channelid, *, message):
channel = await client.fetch_channel(channelid)
await channel.send(message)
client.run(token)
Maybe this should work ... (unconfirmed)
With this program, you can (should) send a message with! Say
Recommended Posts