What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-05 11:20:20
how to make a discord bot python
import discord from discord.ext import commands bot = commands.Bot(command_prefix="!", description="The description") @bot.event async def on_ready(): print("Ready !") @bot.command() async def ping(ctx): await ctx... Add solution -
Python 2022-03-02 20:00:07
discord.File(fp=image_binary,filename=name) discord py
image = Image.open("test.png") with BytesIO() as image_binary: image.save(image_binary, "PNG") image_binary.seek(0) await ctx.send(file=discord.File(fp=image_binary,filename="image.png")) Add solution -
Javascript 2022-03-01 21:30:24
how to have your discord bot send two message
const Discord = require('discord.js'); const Client = new Discord.Client(); const { token, prefix } = require('./config.json'); Client.on('ready',() =>{ console.log('Ready!'); }) Client.on('message', message=>{ let args = message.content.sub... Add solution -
Python 2022-02-28 00:20:03
how to make a latency command discord.py
@client.command() async def ping(ctx): before = time.monotonic() message = await ctx.send("Pong!") ping = (time.monotonic() - before) * 1000 await message.edit(content=f"Pong! `{int(ping)}ms`") #for discord.py... Add solution -
Javascript 2022-02-26 22:50:16
discord bot javascript make online
// require the discord.js module const Discord = require('discord.js'); // create a new Discord client const client = new Discord.Client(); // when the client is ready, run this code // this event will only trigger one time after logging in client.once(... Add solution -
Other 2022-02-25 00:05:02
how to make a cooldown in discord.py
from discord.ext.commands import cooldown, BucketType @commands.cooldown(1, 3, commands.BucketType.user) @client.command() async def command_name(ctx): print('Eyy') @command_name.error async def command_name_error(ctx, error): if isinstance(error, ... Add solution -
Javascript 2022-02-24 14:30:11
discord.js guide
const Discord = require('discord.js'); const client = new Discord.Client(); client.on('ready', () => { console.log(`Logged in as ${client.user.tag}!`); }); client.on('message', msg => { if (msg.content === 'ping') { msg.reply('Pong!'); }... Add solution