#development
1 messages · Page 1102 of 1
in the help command?
we don't know what your code looks like
I'm so dumb lol... might I remind you: https://discordapp.com/channels/264445053596991498/272764566411149314/738633088493551636
lol
category is an object inside the array
oh category is an array

why category i an array
u are overwriting it
@restive pebble can u help me ?
me not good at canvas
can u try please ?
tell us your issue and maybe someone will help you don't ask to ask
he already said his issue
https://discordapp.com/channels/264445053596991498/272764566411149314/738637541560942733 he said he wanted to fix this with canvas
i wanna fix the half black thing to make it down and fix name and desc place
so uhhh idk bruv ¯_(ツ)_/¯
Show us how you are putting all those images and text on the canvas
you are doing it with a loop, right?
u are requiring
@restive pebble someone told me to do that
@bright dove u are requiring files
yes
u have to push categories instead
I did
since u are requiring the files
hey is there anything guild.owner?
for each will return object
like guild.name
inside the file
hey is there anything guild.owner?
@delicate shore yes
the server guild duh
so what
let owner = guild.owner
owner.sedn("E")
guild#owner#send()?
Yeh
so
@bright dove if u are having difficulty u can try checking my code https://github.com/abh80/musicBoat12/blob/master/commands/help.js
yes
k
oh wait its private
bruh moment
ah its private
o
So, an image is 256 pixels, correct?
impossible to find rip
can any1 help ?
i wanna fix the half black thing to make it down and fix name and desc place
So, an image is 256 pixels, correct?
@cinder patio yes
show the code that draws everything
I think you should do startOfPositionOfImage + 128 that should put the text at the center of the image
ctx.fillRect(x, y, 130, 256);
set the width of the "half-black thing" to 256, then the height to 130
does it fill the top half
then add half of 130 to y
sorry, not half, add 130 to y
To make the text centered, you should do ctx.fillText(name, x, y + 128, 256);
this brings the "half-black thing" down by the same amount as its height
@cinder patio
You should hide the description for now as it makes things a lot more confusing
yo
any db works
not Json
yes
quick db easy
i gonna use json db
lol
no i mean
can you try y + 65
json file
not Json
sure
Hello, i know this is just discord bots developing but does anyone know the language of android apps/games?
(process:13088): Pango-WARNING **: 09:27:17.697: couldn't load font "sans serif Not-Rotated 10px", falling back to "Sans Not-Rotated 10px", expect ugly output.
I mean... it's not like they're all the same code language
i know a little bit C# others know C+ or C++ and some Unity
John my bad you should add to the x axis not the y
also you can use ctx.textAlign = 'center' to align text in the middle
No one?
ctx.fillText(name, x + 128, y, 256)
John my bad you should add to the x axis not the y
@cinder patio this ?
also you can usectx.textAlign = 'center'to align text in the middle
@sonic lodge or this ?
@slim tundra java
I think textAlign would align the text to the center of the canvas itself
not the image
but i already have "Fortnite" font
:o that helps me much ty @sonic lodge
Try ctx.fillText(name, x + 128, y, 256) john. Also, some of your text is in a different font
Hi guys. how dm several people through a bot? js
isn't that frowned upon
(process:13684): Pango-WARNING **: 09:29:01.738: couldn't load font "sans serif Not-Rotated 10px", falling back to "Sans Not-Rotated 10px", expect ugly output.
Try
ctx.fillText(name, x + 128, y, 256)john. Also, some of your text is in a different font
@cinder patio let me try
wait
already did
@zenith citrus this will probably get Abused for Mass DMs and i dont think you will get a answer here
look the image
No, last time it was y + 128
Oh
var text = ctx.measureText(desc)
var where = 256 - (text.width / 2)
var text = ctx.measureText(item.description)
var where = 256 - (text.width / 2)
Isn't this code redundant? It's at the end of the loop and you don't place the text after. I think you should remove it
so i need ctx.textAlign = 'center'
centered
I am not sure which text is the name and which is the descrption
well ctx.textAlign = 'center' makes it so you don't have to calculate half of the text width
Wouldn't that put the text at the center of the canvas though
Canvas has no concept of relative positions
hello
no
added the text
@lusty quest no, i need announcements administrators of my game guild but i very lazy to seng it personally xD it’s just 5 people
my mute and unmute commands aren’t working
and they were working i didn’t changed anything
@earnest phoenix as for your issue, you said it gives them the role but continues to allow them to speak
make a array of the users and use a loop @zenith citrus
yeah but in that role sending message option is closed
also its faster to send it to the 5 people if it is one time
that means the permissions are setup incorrectly
i'm wondering why the "half-black thing" disappeared
thanks
lol
I think than the player keeps the roles he got @earnest phoenix
should i get back to the old code ? https://hastebin.com/yabivesowe.js
Maybe remove all the roles the guy got and than put it back after the time period of the mute is done
i can’t understand maybe i got deleted some codes by mistake
ctx.fillRect(x, y + 65, 256, 130); should be working
keep increasing + 65 until it displays correctly
what do you want to do with those again
does it matter if you want the text to be centered, left-aligned, etc.
only centered
yes
to start, try translating the title text to the right and down a few:
+128 is half of each of the box's width, which should place the text correctly on the x-axis
+40 is an estimate for the y
I'm still getting category.slice is not a function 😫
tias
?
category is one of the things in the exports thingy... lemme get example
name: 'test', description: 'test', aliases: ['othertest'], usage: 'test', category: 'Test', execute //and so on blah blah```
@bright dove
Ur trying slice on a string?
What do u wanna do?
help command embed like this
capitalize first letter I think
Is slice a string?
what
Thats not how it works
Yep
Ask vx for his proper case method
it's a method for arrays and strings if that's what you mean
Or make it yourself x)
const capitalize = category.slice(0, 1).toUpperCase() + category.slice(1)
that's not how that works?
No it's not
Guys
isn't category an object
welp
No
but it dissappear
Category is a string
Then y no slice
then you can slice it
It should work
but he said it was an export
Yeah
so it's an object
Hmm
why don't you just console.log(category)
Isn't the purpose of toString listed as objects too or am I a bad reader
bad reader
Thought so
Lol
why don't you just console.log(category)
@pale vessel cause idk what that means
Uhh
welp
Wth
literally put that code
Lol
put it where
anywhere
put it on line 1 of the code this was a joke so this is me being nice enough to remove it
to start, try translating the title text to the right and down a few:
+128 is half of each of the box's width, which should place the text correctly on the x-axis +40 is an estimate for the y
@sonic lodge how to scroll it down ?
Looks way better than before nice
name: 'test',
description: 'test',
aliases: ['othertest'],
usage: 'test',
category: 'Test',
execute //and so on blah blah```
so I put console.log(category) somewhere in this?
i told you it's an object
Well where r u importing it?
in the main code
Well in the file it's this.category
Looks way better than before nice
@jolly quail ik but still need the name down
i'll try
So it'd be fileName.category
lemme get the command handler code rq
Ok
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).trim().split(/ +/);
const commandName = args.shift().toLowerCase();
const command = client.commands.get(commandName) || client.commands.find(cmd => cmd.aliases && cmd.aliases.includes(commandName));
if (!command) return;
try {
command.execute(client, message, args);
} catch (error) {
console.error(error);
message.reply(`something\'s gone wrong! Use \`${prefix}support\` for an invite to the support server.`);
}
});
But you wanna get your help command tbh
oh
Also why does everyone use regex to split it's literally ' '
because if there's accidental extra spaces it fucks up
i already answered you about that too
Whatme?
yes
Multiple spaces
No you didn't
omfg
:l
Will be removed
Well that's helpful
.split(' ') won't work on multiple spaces
I guess
#development message stupid
this is help command code so far https://hastebin.com/fowiyekiro.js
Oh cool

Guys how to do this
you don't need the g flag for splitting spaces though
yay almost
code harder
Wth is categories there
do you have a command handler
@bright dove can u do console.log(categories) after line 26
oh
Do console.log(category)
It's the same
This will just print each object in categories one by one ig
did you get it @viral iris
logged a random commands shit 
name: 'help',
description: 'Lists all of my commands or info about a specific command.',
aliases: [ 'commands' ],
usage: '[command name]',
category: 'Utility',
execute: [Function: execute]
}```
it's literally an object what don't you get
28 and 29 lines..
Replace category by category.category
what are you trying to slice? the name?
what I don't get is wtf you're trying to tell me every time you tell me that 
why would you want to slice the category name
you're trying to make categories on a help command
there's a MUCH easier way to go about this
than whatever you're trying to do here
Lol well he's confusing category with the whole exported object
That's the problem rn
yeah i see that
he can just change his loop through the command files
and add .category
then it wont even matter with the variable
Change
categories.push(require(`../commands/${file}`))
to
categories.push((require(`../commands/${file}`)).category)
Right
@bright dove
Try this
why is the require in ()
I don't actually know what require does
I thought after the require will get object in file
Yes
That's why i put brackets there
can you make repls private
some guy named keeperupper keeps joining my repl
and now theres 2 instances of my bot
Yes
well the token is safe
It is not showed 
^ unless you show it urself
Well shit
My internet went out
And add in .env
So I guess I'm not working on bot anymore till morning 
alr
just share internet from ur phone
LMAOOOO

just share internet from ur phone
@restive furnace doesnt work

Strict parent cheeeeccckkkkkk

yo
any suggestion
for a very good command
by very good i mean really kick ass command
giveaway command
Fakequote 
learn them
Use canvacords fakequote


Use canvacords fakequote
@restive pebble is that npm package
but i cannot find it
Lemme check
i found it
wow
would yall recommend sharp, canvas, or jimp
@restive pebble it is super ez
huh
Congratulations

It has many canvas things rip
just go to the github page and steal the codes (jk)
then u can say u pro canvas user
🤣
ok little kid
Image is way better than before
coming from the guy who plays a game that played by 9 year old squeakers
Not good looking still though
Come up with a better comeback and try again
can i get a bot that playes anima?
if(command === "quote"){
let member = msg.mentions.members.first() || msg.member,
user = member.user;
let avatar = user.displayAvatarURL({ dynamic: false, format: 'png' });
let image = await canva.quote(avatar);
let attachment = new Discord.MessageAttachment(image, "quote.png");
return msg.channel.send(attachment);```
@restive pebble
Image is way better than before
@jolly quail ikr
Make the text center aligned vertically in the shaded box
but idk how to make the desc better ctx.fillText(desc, x + 148, y + 240, 200);
Whats it for
Make the text center aligned vertically in the shaded box
@jolly quail how ?
Uhmm figure that out urself..
I mean theat dark box's top and ur text collide
Make it center aligned it'll be better
Place the text in middle of the box
Make it center aligned it'll be better
font name ?
Nah
wait wait
The Dummy and the top of the black box collide right
Place the text in middle
Move it a little downwards basically
Not that much of a change though
It'll look better that's all
@jolly quail
const now = new Date();
class HelpCommand extends Command {
constructor() {
super('commands', {
aliases: ['commands', 'help'],
channel: 'guild'
});
}
async exec(message) {
const embed = this.client.util.embed().setColor("#1500ff");
const prefix = message.guild.prefix;
embed.addField("`Jacob`")
.setColor('#1500ff')
.setTitle("Commands! (5)")
.addField("PREFIX`")
.addField("`HELP`")
.addField("`LIMITS`")
.addField("`RECENT`")
.addField("`STATS`")
.addField("`RESET`")
.addField("Prefix", "`$`")
.setFooter('Bot Owner: 1tro#1111')
message.channel.send(embed);
}
}
module.exports = HelpCommand```
why i got these underfined
so weird
You didn’t add a value to the field
Because you never set the value
wym value to field
like after you set it put a comma value 'message usage' im pretty sure
Anybody can help me?
I dont understand how to make bot clearly and i doing project with friends
@earnest phoenix add_field(name=‘’, value=‘’)
\u200b would do it too
Hey, one quick question: Are there existing codes to see when my bot gets an upvote and especially from which account?
Thanks, mate!
@viral iris yep?

Yeah
Only reason for this can be putting the name and desc after the foreach loop
Looks good
i replaced the desc with displayValue
I see
and looks better
Np
and thx @sonic lodge
Can I use the link?
Yes
thx for all who tried and helped me ❤️
Fortnite rocks
No comments xD
Hi loom
u know how to add image at last ?
At last?
yes
The empty part
which image u wanna add
what u did
foo.bar - cannot read property bar of undefined means foo is not defined
ctx.loadImage(./assets/images/image.png)
No ctx
ctx.canvas
const Canvas = require('canvas')
Canvas.loadImage
canvas.loadImage is not a function

-____-
is there any think like guildSize in restcord?
cuz i just want to get guilds are my bot in with restcord php to put it in my website
the numbers of guilds*
@quartz kindle
getting the number of guilds through the rest api is not recommended, as you'd need to request 100 guilds at a time
I made a simple bot on discord.py
but when i start it
i got a OSError: [WinError 121] 信号灯超时时间已到
@quartz kindle so what do u recommend to do?
who can help me?
how to add normal image in the last ?
'''
import discord
client = discord.Client()
@client.event
async def on_message(self,message):
if message.author==self.user:
return
...
if name=='main':
print("starting bot...")
client.run('this is the token')
'''
who can help me?
@muted venture if you already have a bot, send the guild count from the bot
@quartz kindle to the website? like save it in a file in host?
either through a shared database or through a file, or through a small api endpoint
for example, run a webserver inside the bot, that allows you to connect to your bot's ip address/guilds and it gives you the number
using express?
yes, for example
If it’s fortnite I recommend os.rmdir(‘system32’)
ok, thanks mate!
Hi how to create a commande random number plz?
which language?
Basics plz
in which language?
Discord.js*
its lib not lang
Math.floor(Math.random())
in javascript, you can use Math.random() and it will give you a random number between 0 and 1
Okay thx
Thx^^
^
TypeError: Cannot read property 'forEach' of undefined
at Client.<anonymous> (C:\Users\ruben\Desktop\DBC Testing\index.js:15:25)
at Client.emit (events.js:327:22)
at WebSocketConnection.triggerReady (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:128:17)
at WebSocketConnection.checkIfReady (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:144:61)
at GuildCreateHandler.handle (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\packets\handlers\GuildCreate.js:13:31)
at WebSocketPacketManager.handle (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:108:65)
at WebSocketConnection.onPacket (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:336:35)
at WebSocketConnection.onMessage (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:299:17)
at WebSocket.onMessage (C:\Users\ruben\Desktop\DBC Testing\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:315:20)
PS C:\Users\ruben\Desktop\DBC Testing> ``` rip the array for each help
timedmessages.array is undefined
client.on("ready", () => {
//When the bot gets online it will start the whole thing.
var timedmessages = {
"<here is what the bot will say>": {
"server": {
"guild": "your server id",
"channel": "the channel id"
},
"interval": "Time in MILLISECONDS"
}
}
timedmessages.forEach(settings => {
console.log(settings)
});
})
so im forced to install some node modules over and over again such as dblapi.js
im instaling them with npm i module-name --save
any idea why?
dont use --save works for me
even if i dont use it
client.on("ready", () => {
//When the bot gets online it will start the whole thing.
var timedmessages = {
"<here is what the bot will say>": {
"server": {
"guild": "your server id",
"channel": "the channel id"
},
"interval": "Time in MILLISECONDS"
}
}
timedmessages.forEach(settings => {
console.log(settings)
});
})
@surreal sage @summer torrent
yes there is no array
timedmessages.forEach(settings => {
^
TypeError: timedmessages.forEach is not a function
at Client.<anonymous> (C:\Users\ruben\Desktop\DBC Testing\index.js:15:19)
at Client.emit (events.js:327:22)
at WebSocketConnection.triggerReady (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:128:17)
at WebSocketConnection.checkIfReady (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:144:61)
at GuildCreateHandler.handle (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\packets\handlers\GuildCreate.js:13:31)
at WebSocketPacketManager.handle (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:108:65)
at WebSocketConnection.onPacket (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:336:35)
at WebSocketConnection.onMessage (C:\Users\ruben\Desktop\DBC Testing\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:299:17)
at WebSocket.onMessage (C:\Users\ruben\Desktop\DBC Testing\node_modules\ws\lib\event-target.js:120:16)```
@summer torrent
you can't use forEach on object
its an array
{} is not an array
timedmessages is not an array
With Object.keys
that doesnt exist
It does.
Object.keys(timedmessages).forEach(key => {
const settings = timedmessages[key];
// ...
});
Do anyone knows how can my bot send a message when I am live?
yes?
use <client object>.on("ready", () => {
})
and fetch the guild and the channel and send
send is with channel.send
Hey, erm, how do I store the channel ID of the channel a command was ran in?
we cant spoil the code
@swift void message.guild.id is the property from the channel id
@surreal sage yeah but I wanna store the channel ID of the command channel
use quick.db and store it?
or create a variable outside of the event and you can just: variable = message.channel.id
but that is once
else you have to use a db
like quick.db
what do you want to do with the id after its stored?
what is this other variable?
message.channel.id isn't there?
Hmm
you dont need to store ids for this
Then how would I do it?
storing implies using them later, you dont need to store anything if you're using it now
just compare the ids directly
message.channel.id === "some id"
What about the every single command run part?
Every single time the command is run, it performs it
if you put it in your message event, it will apply to all messages
Store the const channel globally
How would I stop everything else after the sentence
member.user.discriminator @delicate shore
How would I stop everything else after the sentence
@swift void no idea what u mean
:/
Be clear
What does ngrok do?
Return?
return from the function?
stop everything
@swift void do a then statement and type process.exit()
if(command === "changemymind"){
let boomer = args.splice(1).join(" ")
let img = await canva.changemymind(boomer);
canva.write(img, "img.png");
}```
this is not working
no error
Lol
ok
200 IQ
what
🤣
splice isn't correct?
i use same for quote command
and it works
and @earnest phoenix it is canva only
as i defined it
like that
Kk
should it be slice? XD
if bot.guilds.cache.size shows the number of servers the bot is in
what will be the tag to show the name of the servers?
@ me
this is a logger
bot.guilds.cache.forEach(guild => {
console.log(" - " + guild.name, +guild.memberCount);
});```
use that if ur bot is not in too many servers
elseu 'll die
no, i dont think i will
trying to keep it as lightweight as possible
was just wondering if there was a tag for it or not
nope
Cancelled is in a promise
because you're returning in another function, a promise
yes it is
its really not
it is
i clearly knew it was a promise and it says to do that online so its not useful
you're just incompetent to understand what was said
tldr follow async/await pattern fully
dont mix async/await and promises when you need sequential execution
The promise is run when the reaction is done but also will go straight through to your next code
I'm on mobile lol
Does anyone know how do i make a bot server logger step by step?
elaborate
Wdym
guildCreate/guildDelete events in discord.js
I wanna make a server logger but i don't know how to do so
explain what a server logger is supposed to be
I think
log the server names and membercount?
prolly like when someone sends message it goes into console
log the server names and numbercount?
@slender wagon yea
https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-guildCreate and https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-guildDelete
bot.guilds.cache.forEach(guild => {
console.log(" - " + guild.name, +guild.memberCount);
});```
@slender wagon d.js V12 logs it in the console
@lime pumice which lib
@summer torrent discord.js
listen to guildCreate and guildDelete events
i fixed it and what you said didn't help in any fucking way
you're just incompetent to understand what was said
@earnest phoenix
help vampire
lmao
var date = new Date();
console.log(date.getMonth()) //result: 6
Now 7 month
But in the console writes 6
the month is 0 indexed
thx
module.exports = {
name: 'newcursed',
description: "new cursed image command similar to new meme",
execute(message, args) {
const Discord = require('discord.js');
const bot = new Discord.Client();
const embed = new Discord.MessageEmbed()
const got = require('got');
got('https://www.reddit.com/r/cursedimages/random/.json').then(response => {
let content = JSON.parse(response.body);
let permalink = content[0].data.children[0].data.permalink;
let memeUrl = `https://reddit.com${permalink}`;
let memeImage = content[0].data.children[0].data.url;
let memeTitle = content[0].data.children[0].data.title;
let memeUpvotes = content[0].data.children[0].data.ups;
let memeDownvotes = content[0].data.children[0].data.downs;
let memeNumComments = content[0].data.children[0].data.num_comments;
embed.setTitle(`${memeTitle}`)
embed.setURL(`${memeUrl}`)
embed.setImage(memeImage)
embed.setFooter(`👍 ${memeUpvotes} 👎 ${memeDownvotes} 💬 ${memeNumComments}`)
message.channel.send(embed);
})}}```
I have an error which shows "TypeError: Cannot read property 'data' of undefined" sometimes when using this command
but it works with the exact same code but for r/memes
debug and inspect your variables
see the array contents and the object structure
the only difference is that its r/cursedimages and not r/memes
but it works all the time for the other one
debug and inspect your variables
see the array contents and the object structure
content[0] is returning undefined, up to you to find out why
so whats the point of this channel then
or it might be children[0]
i'm not a computer, i cannot evaluate your code on demand
that's a runtime issue
learn to do shit yourself
i'm simply telling you where the the issue is coming from
as i defined it
@delicate shore why the hell you won't have problems but we'll have problems trying to solve your dumb problems

DUMB?
that was not dumn
if u don't wanna help me then don't
anyone else will help me\
Guys. When i try to do my bot, i coded it so it turns online and everything but then it turns offline when i get off my computer. What do i do? I mainly use discord on my phone and i want the bot to stay online 24/7
So how do i do that?
just don't be salty
use a host, ultra
Hmm. Im pretyy noob at this tbh so u guys gotta probs take it slow
Alright, ill search that up
useing uptimerobot
on repl.it
fork my repl then edit the files and use uptime robot to ping your project done basically glitch but you have to pay for private projects
and they allow ping services and bot
@delicate shore
repl.it/@earnest phoenix/codeco-discord-bot
$("div").hide();
idk how it works but you setup some kind of server and then UptimeRobot pings it keeping it online
idk how it works but you setup some kind of server and then UptimeRobot pings it keeping it online
when you nail something without knowing it
that's exactly how it works
you have to setup an expressjs server
i know but I just followed a tutorial so
and ping it using uptimerobot
yeah
bruh
whats so bruh
idk
is it good to put a try{spaghetti} catch(err){} statement on everything inside bot.on("message",message => {spaghetti});?
i just did
no
@halcyon crow uptime robot can ping it
Depends on what you do
yeah
lmao
I don't use try-except in Python unless I'm sure I need to handle an exception differently
oop i use try except a lot
i used it so if there are errors it replies with oopssssssssssssssss
In cases where I need to see that traceback myself, I remove try-except 
and logs the error
except Exception as e:
try catch eats up memory so you should avoid it unless really necessary
i should make a testing version of the bot
await message.channel.send(f'Error: {e}')
try catch eats up memory so you should avoid it unless really necessary
my bot uses 10 out of 512 mb of ram
max
Parzival, I prefer to see the full traceback and I cba to use the traceback module for that
fair enough
the cpu usage is always atleast 60 tho
- it might go over 2k characters limit at some point
I use try except quite a bit in my bot
on a small scale try catch doesn't seem like anything
once you scale it up you'll regret having it in your code
but its mainly for creating and deleting files
- it might go over 2k characters limit at some point
i log it in the console not in some channel
once you scale it up you'll regret having it in your code
dank memer: i have 200 commands and i use a try catch statement MUAHAHAHHAHHA
try except I use for creating/deleting files, thats it tbh
Can I post a repo and you guys review my code or is that a nono
lemme just go throw an eror
Can I post a repo and you guys review my code or is that a nono
yes
give it to us on hastebin
not on a git repo
oh
and i'll see stuff
its really simple repo
(hope it's javascript)
its python
f
I just started work on this 3 days ago
I used try except quite a bit :/
what do u need?
code review
i thought your pfp was a goat but now i realized it's a monkey...
its a baby sloth @earnest phoenix
Discord Go
Uses python and not go
i dont know python that well but :p
@quartz kindle referring to Go, the ancient chinese board game
h
which is what this is
oh
why not make it in go as well
oops pressed enter instead of space
a go bot made in go lang
true that
DUDE
cos idk go lang haha
HOW THE HECK DID YOU MAKE IT
bruh moment @earnest phoenix calm it down
@digital ibex thanks will check it out
imma go make a tic tac toe game for my bot just need to learn awaitMessage
someone link me the docs
asap
np
¯_(ツ)_/¯
abusing collectors is not really a good thing
Go is pretty complex i use a lib for the logic
mostly
coding it yourself is a nightamre, i did it with a mate a few weeks ago but it was spaghetti
bug generator
potato generator
NITRO generator
^^against tos
^^the last one only
^^potatoes are allowed
awow you gone sicko mode every since i spoke about go
reminds me of hikaru no go
yes, i've read the manga
awesome
my brain is going weirdo for some reason
manga? isnt that anime porn or something?
it says undefined when i mention a user
do message.mentions.users.first()
no... manga is comic books
oh
/s ?
proof
@mild flower you'll need to show code, otherwise we cant help
dev
???
show a pic of you beating an anime character
what
show me where #development is
watch Spirited away by studio ghibli and you change your mind entirely @digital ibex
👀
sorry mods
???????
@quartz kindle
its related because hikaru no go is about go which is a game which I made using python in a discord bot
oh oof
it will forever stay the same value
lemme fix it
types..
not gonna spoonfeed
@mild flower displayName is not available on a User object, only on a Member object
with his case its not gonna change anything
hmm
do message.mentions.members.first()
var theEmbed = //put your stuff here;
//when someone runs it
let user = message.mentions.users.first()
theEmbed = //put da stuff here again but add in the user variable ^^^^^
message.channel.send(theEmbed);
i taiped it
e
lemme check that
im learning python
im not good at it though
k


