#development

1 messages Ā· Page 554 of 1

spring ember
#

But you just need to do args[0].startsWith("pet!")

supple citrus
#

ok

amber fractal
#

args is split by space. I dont want just any command. Only those 2 specific can be used if you arent in the db

#

It works anyways

#

Theres a reason i made it equal to pet!help or pet!adopt. If you trued to do anything else and you werent in the db itd break

#

Like i said though, all working, thanks tho

earnest phoenix
#

Whenever I attempt to add a bot into a server. It never allows me to add bots on this account. It always asks for an account that's not even in use or I have used before. I am not sure how to direct it to this account.

languid dragon
earnest phoenix
#

Wait. I was guided.

#

Gimme a moment.

#

I dont understand

#

My english is so bad

#

French and Russian

languid dragon
earnest phoenix
#

Thank you! @languid dragon

amber fractal
#

Wym

#

Split then join, there might be a more effective way to do it tho

#

Yes

obsidian stone
#

can anyone help with custom server configurations pls???

amber fractal
#

With what

#

Like database wise

#

Usually i map things by the guild id tho

languid dragon
#

<Array>.toString() will do that for you

lament meteor
#

@coral trellis is this ads?

#

o brammy

void mantle
#

to slow

coral trellis
#

Yes

#

Brammy I am outside and I almost got to it before you smh

void mantle
obsidian stone
#

@amber fractal yes

thick hollow
#

Hey how can I set my bot up so it sends a message to all servers notifying them of a scheduled maintenance?

(I am using the discord.js library)

void mantle
#

dont do that that's considered api abuse

#

post a message about it in your support server

coral trellis
#

Or have a message that is displayed on the help command or on a common used command

void mantle
#

^

obsidian stone
#

^

thick hollow
#

Alright fair point

#

Thanks

fiery nebula
#

need help

#

i type !ping

#

and no respond

#

but console look like this

#

bot is just unable to send messages but he got admin privileges

neat falcon
#

try !PING

fiery nebula
#

not working

#

i upper case the message anyway

#

it gets in the if

#

its just not sending the msg

#

it worked perfectly fine yesterday

#

i just restarted the bot today and all is now fk up

keen drift
fiery nebula
#

my problem is solved

#

i had to type "return" in front of every message.channel.send()

mental solstice
#

you shouldnt need to

dull idol
#

Ok. How i can make a volume.

#

@coral trellis maybe, you can... sorry tag

mental solstice
#

for music?

dull idol
#

@mental solstice it's like radio.

mental solstice
#

quick google search.. would this be useful?

dull idol
#

hmm... maybe that package would be helpful.

#

But, yeah. I'm tryin.

mental solstice
#

idk JS. So :)

neat falcon
#

just use dispatcher volume

#

no need for extra modules

dull idol
#

it was command handler.

fierce thorn
#

dispatcher.setVolumeLogarithmic(args[1] / 5);

dull idol
#

i know,.

neat falcon
#

the fuck is logarithmic

#

just setVolume xddd

dull idol
neat falcon
#

yes

dull idol
#

how i can get out.

#

this.

#

maybe. add some function play() { ...

#

or something.

fierce thorn
#

I had one bot with system for that but i deleted it (i use lavalink now)

fiery nebula
#

maybe somone can say me how i can get date when i the user joined the server which sent the message?

neat falcon
#

lavalink gang

dull idol
#

maybe i will try lavalink.

#

uhh...

#

uhhhh...

mental solstice
#

king salt have you checked the docs for your library?

neat falcon
#

^

fiery nebula
#

yea but i couldnt figuer it out

#

i just get the bots joined at

mental solstice
#

you are defining something wrong then probably

fierce thorn
#

Oh i actually still have that project somewhere on my pc šŸ˜‚šŸ˜‚šŸ˜‚ (if you really need to use ytdl)

mental solstice
#

can u show us your on join code

dull idol
#

maybe i dont use command handler...

fiery nebula
dull idol
#

but thats gonna a little more harder

neat falcon
#

you should use command handler

fierce thorn
#

You still can use it

fiery nebula
#

sender..guild.joinedat = undefined

fierce thorn
#

With this method i used xd

neat falcon
#

client.voiceConnections.find then get .player.dispatcher

mental solstice
#

sender.Username is correct tho?

dull idol
#

how

fiery nebula
#

yes sender is message.author

dull idol
#

hmm... sender should be message.author

#

dont use Username

#

use username

mental solstice
#

he has lowercase mb

quartz kindle
#

.joinedAt is a property of guildMember

mental solstice
#

yes you will have to define that same user as the guildMember object to get joinedAt

quartz kindle
#

user and member are two different things

#

for example:
message.author = user (contains user account info)
message.member = member (contains user guild info for the current guild)

neat falcon
#

why don't they just merge them into one smh

fiery nebula
#

ah ok

dull idol
#

i dont care

#

i prefer Message.author

fiery nebula
#

lemme try i

quartz kindle
#

you cant merge both, because one is available in dms, the other isnt

#

unless you define a bunch of null properties

dull idol
#

Because i can't.

#

Maybe i'm trying to working out with @earnest phoenix

fiery nebula
#

worked with: message.member.joinedAt

#

thx

amber fractal
restive flame
#

Hi, I bought a bot 4 days ago in the discord bot list but I still can't get the patent

amber fractal
#

Wait nvm my picture lol

quartz kindle
#

what? you bought a bot? a patent?

#

wtf

rustic axle
#

@restive flame You don't can't buy bots wtf

#

and bots can't be patented

quartz kindle
#

i have a feeling english isnt his first language

restive flame
#

i not speak englist

dull idol
#

unexpected token return.

#
exports.run = async (lofi, message, args) => {
      dbl.hasVoted(message.author.id).then(voted => {
      if (!voted) return message.channel.send('dbl problem: vote the bot first, use `lofi upvote`') 
      if (voted) {
            
      if (message.channel.type == "dm") return message.channel.send("unknown error: launched in dm.")
      if (!message.member.voiceChannel) return message.channel.send("unknown error: join the voice channel.")
      args[0].replace('/\%/g', '')
      
      if (!args[0]) return message.channel.send('volume: please supply the number')
      if (isNaN(args[0]) return message.channel.send('volume: not a number')
      if(args[0] > 2) return message.channel.send('volume: it can be set in range 0.0 - 2. **`ex: lofi volume 0.4 (0.4 = 40%)`**');
      lofi.connvoice.dispatcher.volume(args[0])
      lofi.connvoice.dispatcher.setVolume(args[0])
      message.channel.send(`volume: ${args[0]}`);
      }
    
    })
}```
rustic axle
#

I don't see the problem there

dull idol
#

unexpected token return.

#

and im trying to remove it.

quartz kindle
#

eww people who dont use brackets

inner jewel
#

try rewriting all those ifs as if(...) { code }

quartz kindle
#

^

#

please

inner jewel
#

and you'll see the issue

dull idol
#

ok

rustic axle
#

most likely when you call this module you don't have a break; before the client.login()

inner jewel
#

no

#

it's an unclosed if

quartz kindle
#

took me a while

#

but i found it too

rustic axle
#

tabbing hell zoomeyes

inner jewel
#

strings are immutable

#

that line is useless

dull idol
#

so, am i gonna remove it?

quartz kindle
#

take the string out of the array first

inner jewel
#

const [volume] = args :^)

quartz kindle
#

hacks

dull idol
#

@weak parrot sorry tag

#

because i dont get attention bloblul

inner jewel
#

also an error message without code is almost always useless

dull idol
#
      dbl.hasVoted(message.author.id).then(voted => {```
#

ok but sorry :(

weak parrot
#

this also I'm assuming you're using JS which I have no knowledge of so it's sorta useless either way

lament meteor
#

@dull idol what is dbl defined as?

dull idol
#

um...

#

const dbl = require('dblapi.js')

lament meteor
#

eto...

#

look at the docs

#

u gotta do something like const DBL = new dbl('token', client)

dull idol
#

hmm...

#

let me tryin

inner jewel
#

const dbl = new (require('dblapi.js'))(token, client)

lament meteor
#

tbh natan i hate npm modules that u hv to make a class when u don't need to

fiery nebula
lament meteor
#

@fiery nebula there is a timestamp property for embeds

fiery nebula
#

well

inner jewel
#

setTimestamp(...)

mossy vine
#

iirc .joinedAt returns a Date object, so you can mess around with that

fiery nebula
#

ahhhh

inner jewel
#

or use discord's built in timestamps

#

which adjust the time into each user's timezone when displaying

fiery nebula
#

i just want the Date

dull idol
fiery nebula
#

xd

dull idol
coral trellis
#

It can take up to 5 minutes to register each vote

fiery nebula
#

iam to retarded to shorten it send more help

dull idol
#

nevermind, it worked.

#

I tell someone to vote my bot. And, it worked.

#

So yeah.

#

Done, just wait some votes

earnest phoenix
#

(node:7536) DeprecationWarning: Collection#find: pass a function instead

#

what the hell is it

#

let role = message.guild.roles.find('name', argss);

inner jewel
#

find(x => x.something == somethingelse)

earnest phoenix
#

let role = message.guild.roles.find(r => r.name == argss);

#

?

inner jewel
#

yes

fiery nebula
#

setTimestamp(...)
can you make me an example?

earnest phoenix
#

do .setTimestamp()

#

in your embed

dull idol
#

@fiery nebula it's automatically posted the normal timestamp

#

.setTimestamp is available for Embed.

#

.setTimestamp(new Date()) is enough

fiery nebula
#

ah ok

#

wow

#

And if i want to Include Text in that Line? Cuss i want to display "Member since: "

mossy vine
#

.setFooter

#

.setTimestamp will appear after the footer

fiery nebula
#

ah

earnest phoenix
#
  if(!message.member.hasPermission("MANAGE_GUILD")) return message.channel.send("Vous n'avez pas la permission nƩcessaire.")



if(!args[1]) return message.channel.send('Utilisation\n`*roleall <rolename> add/remove`')

let role = message.guild.roles.find(r => r.name == args[2]);
 if(!role) return message.channel.send('Role Inexistant')

if(!args[3]) return message.channel.send('Utilisation\n`*roleall <rolename> add/remove`')

if(args[3] === "add") {
 message.guild.members.forEach(member => {
          member.addRole(role.id)
    })

return message.channel.send(`Ajout du role ${argsss} a **${message.guild.memberCount} utilisateurs**`)

  }


  if(args[3] === "remove") {
 message.guild.members.forEach(member => {
          member.removeRole(role.id)
    })

return message.channel.send(`Retrait du role ${argsss} a **${message.guild.memberCount} utilisateurs**`)

  }```
#

What is the error

#

I dont have error in the console

#

WTF is going on with discord

#

bots always go offline for no reason

amber fractal
#

Thats discord for you

#

If its discord, we cant fix it

earnest phoenix
#

JavaScript:

.addField("Invite", message.content.split(/(https?:\/\/)?(www\.)?(discord\.(gg|io|me|li)|discordapp\.com\/invite)/).join(""), false)

This when ran, returns four g's. Shown in the example below, however, I want it to display the exact invite. When posting an invite link, it only has 2 g's:

#

Anyone know how to fix this?

#

Btw, thats a fake link. It doesn't work. Kthx

mossy vine
#

"testetest"

btw thats a fake link

earnest phoenix
#

Ye

#

I just spammed test for the link

#

Pretty sure thats not actually a link šŸ˜›

#

Just, anyone know a fix plez?

#

Ow

#

I done it completely wrong anyway nvm

fringe rover
#

How do i Embed Something ?

#

@languid dragon

languid dragon
#

why are you asking me?

fringe rover
#

Bc i thought your th person who will know sorry about The ping sorry didn’t realise

languid dragon
fringe rover
#

Ow Sorry

#

Really

#

sorry

#

I didn’t see that

#

ā˜¹ļø

#

How do i Embed Something ?

dull idol
#

@fringe rover libs?

#

Discord.js?

#

Py?

#

C++?

#

Eris?

fringe rover
#

How do i do it with a Bot that’s already been made?

#

@dull idol

dull idol
#

You code.

fringe rover
#

Like Reaction Role

dull idol
#

Reaction Role is hard.

#

You even don't learn the basic of Javascript first.

fringe rover
#

Can you help me

#

?

dull idol
#

Yes.

#

What i can help you?

fringe rover
#

Thank you

dull idol
#

...

earnest phoenix
#

let Eucid = new Discord.RichEmbed()

fringe rover
#

How do i command it

#

Node dosent work for me

#

ā˜¹ļø

fringe rover
#

Don’t know how to do python

#

I need some help

mossy vine
#

oh my fucking god

dull idol
#

I have a tutorial.

last ferry
#

How do I command it

dull idol
#

It will help you how to command it.

fringe rover
#

@fringe rover what im sorry

earnest phoenix
#
.setTitle('Test')
.addField('Hello', "Hi", true)
.setFooter('Testttt')

console.log(Eucid)```
faint topaz
#

Politely but firmly

earnest phoenix
#

Look

dull idol
#

But easy to operate.

#

So, first. There was a command named Ping and you can try it by yourself. :)

fringe rover
#

@earnest phoenix What do i command it on

#

And @dull idol thank u guys

earnest phoenix
#

I dont understand what do you want

#

I dont understand everything i dont speak english

last ferry
#

What do I command it on

dull idol
#

@last ferry It's like. How to command or. How to operate it.

#

But yeah, hope An Idiots Guide help Eucid.

last ferry
#

I know I was just repeating what he said lol

dull idol
#

How to operate it.

last ferry
#

How to command discord bot

dull idol
earnest phoenix
#

how to add two response in one command ?

faint topaz
#

ez

earnest phoenix
#

no

#

wait

faint topaz
#

just put

earnest phoenix
#

How do i add MEE6 to my discord?

dull idol
#
  if (message.content.startsWith("ping")) {
    message.channel.send("pong!");
  }

  if (message.content.startsWith("pong")) {
    message.channel.send("ping!");
  }```
late hill
#

Click invite on the bot page

earnest phoenix
#

no no i'm not stupid at this point xD just my english is bad, just when i make >ping this respond me "Ping" and when i remake ping command he rspond "Pong"

faint topaz
#
for(var i = 0; i < 2; i++)
{
    your command.
}
#

ez

last ferry
#

var i

#

Boi

#

Just do int i

dull idol
earnest phoenix
#

@faint topaz i dont understand

dull idol
faint topaz
#

@earnest phoenix was a joke no worries

earnest phoenix
#

i make a roleall command and i want if i make command one times is add role to everyone and if i make command two times is remove role from everyone

dull idol
#

@earnest phoenix and there you go.

faint topaz
#

uh

#

just

#

check if they already have the role

#

and remove it if they do, else add it?

dull idol
#

@faint topaz kinda nsfw?

late hill
#

I don't think you're allowed to mass add/remove roles

faint topaz
#

nsfw?

dull idol
#

?nonsfw -> one times -> added
?nonsfw -> one times again -> deleted

last ferry
#

Yeah mass roles is against TOS

#

soo

dull idol
#

Oh. Add role to everyone.

faint topaz
#

define mass

dull idol
#

I think it's prohibited.

faint topaz
#

but yeah it would be a lot cleaner to do it individually either way

last ferry
#

Plus it’ll get your bot rate limited a lot

late hill
#

Why would you add a role to everyone? If everyone has the role, the role is useless?

fiery nebula
#

true

faint topaz
#

where I come from everyone is admin

earnest phoenix
#

mass anything is doing something for more than 5 times with no rational delay between the action

late hill
#

šŸ‘€

dull idol
#

Mass -> Rate Limited -> Your bot get banned -> Your account get banned

#

Not banned, just blocked.

late hill
#

If everyone needs a certain thing

dull idol
#

You know...

earnest phoenix
#

most libs prevent you from hitting discord ratelimits

late hill
#

Then just add that thing to the @everyone role

faint topaz
#

he wants to be able to remove it on command too though

#

ĀÆ_(惄)_/ĀÆ

late hill
#

Then just remove that permission from the everyone role again

faint topaz
#

oh yeah

lyric talon
faint topaz
#

sometimesimretarded

late hill
#

Oh no, it's python

last ferry
#

Wow someone actually used hastebin instead of just dumping their code in here

#

Props

dull idol
#

Oh jesus christ

#

Python.

lyric talon
#

yes, it's python

#

:/

dull idol
#

Python

earnest phoenix
#

ok and?

#

most of yall use js which requries 20 iq

faint topaz
#

why mad

late hill
lyric talon
#

I just need help lul, don't need to fight

late hill
#

It requires 20iq when you're just copying shit

lyric talon
#

you don't need to fight *

late hill
#

Which also applies to any other language

dull idol
#

Don't fight tho'

lyric talon
#

Both languages are importante

#

important*

dull idol
#

than your lifee

faint topaz
#

I almost picked python for Aikawa

#

good thing I didn't cause idk what the issue with your code is.

last ferry
#

@earnest phoenix lol finally someone who agrees

#

Big facts

lyric talon
#

:/ ty, EXI

#

It's like the invoke command isn't working correctly

#

Because the bot delete the message

#

but not invoke the command again

half spear
#

Would anyone know how to make a NSFW channel check in discord.py (THE NON REWRITE VERSION) I have asked this before since discord.py doesnt include this feature and i was wondering if theres a web request i can make with the requests library that would use the discordapi.

slim heart
#

So um what’s stopping you from getting the rewrite version?

pale marsh
#

The rewrite exists for a reason

amber fractal
#

Im trying to make a thing that checks for racist words in the names people choose for their pet on my bot. Obviously I don't want to allow them to do this, I know how to make a profanity filter for stuff like this, but how do I check for things like spaces and numbers or things like that in place of cetrain letters?

#

no google did not help

pale marsh
#

Regex maybe? Idk

amber fractal
#

thanks

#

I didnt know that existed

earnest phoenix
#

word filters are useless, there will always be a way to bypass them

amber fractal
#

If they use it even once they get blacklisted eternally

#

I dont really care, I just dont want someone with a pet that has the n word as its name

#

You always get people like that

#

the 10 year olds who think they are funny

topaz fjord
#

Make it toggle able

#

not everyone wants a word filter

#

No one needs a helicopter parent on discord

#

@slim heart it's probably cus they don't want to rewrite everything

amber fractal
#

Its not a chat filter

#

Im just not going to allow racist terms in pet names

earnest phoenix
#

Quick.db

wanton walrus
#

Don't use quick db

earnest phoenix
#

On glitch

wanton walrus
#

Problem solved

earnest phoenix
#

Why

wanton walrus
#

Dont use glitch

earnest phoenix
#

Hmm

wanton walrus
#

Problem solved

#

Also your database is corrupted

#

No fix for that

mental solstice
#

unmalform the db

earnest phoenix
#

?

wanton walrus
earnest phoenix
#

How

mental solstice
#

idk lol, start from scratch. I've never even looked at quick.db perhaps you're adding invalid characters somewhere

earnest phoenix
obsidian stone
#

waw

earnest phoenix
#

İs this normal

#

Or

#

Broken

obsidian stone
#

oof ur on ur phone

earnest phoenix
#

Yeah

obsidian stone
#

check ur pc

earnest phoenix
#

Really hard

#

Oke

obsidian stone
#

and um

#

btw ur using node.js?

#

@earnest phoenix

earnest phoenix
#

Yes

#

And glitch editor

obsidian stone
#

hm.

#

even i use glitch

wanton walrus
#

Don't fucking use glitch

obsidian stone
#

@wanton walrus y

mental solstice
#

is quickdb json?

earnest phoenix
#

I dont want waste my money to vps servers

wanton walrus
#

@mental solstice sqlite wrapper

obsidian stone
#

@earnest phoenix use better-sqlite3

wanton walrus
#

sqlite3 to be exact

obsidian stone
#

thats the best

wanton walrus
#

no

obsidian stone
#

better-sqlite3

wanton walrus
#

Sqlite is not a good choice for a discord bot lol

obsidian stone
#

mine works fine

amber fractal
#

I use it

obsidian stone
#

well i use enmap

wanton walrus
#

Small scale yea

#

Larger scale no

obsidian stone
#

enmap is fine tho

earnest phoenix
#

Huh

obsidian stone
#

@earnest phoenix r u tryna do levels?

earnest phoenix
#

Yes

obsidian stone
#

oh dm me

earnest phoenix
#

All quick.db commands are broken

obsidian stone
#

dont use quick.db

earnest phoenix
#

My little fucked ranking system

#

Only leaderboard working

obsidian stone
#

what api

earnest phoenix
#

Discord.js

obsidian stone
#

@earnest phoenix no like for the picture

#

of leaderboards

slim heart
#

@amber fractal has your problem been solved?

amber fractal
#

Yes, thanks for the concern

#

:+1:

lofty hamlet
#

hi

#

my votes are no longer on my bot while before they walked

#

api changed?

desert bough
#

anyone know how I can scrape a embed previously sent by my bot for information

quartz kindle
#

message.embeds should give you embed information

earnest phoenix
#

hey uh

#

can anyone help me making a command with 2 words

mossy vine
#

split the received message into args

earnest phoenix
#

Oh

#

can u help me in dm's?

#

I got some trouble making it

quartz kindle
#

are you using js?

earnest phoenix
#

yes

quartz kindle
#

you can split a message using message.content.split(" ")

#

that will give you an array of words

earnest phoenix
#

in my command handler

#

because im using a ch

#
module.exports.help = {

    name: "help a",
    aliases: []

}```
#

and this doesn't work xd

quartz kindle
#

you have to use the help command

#

inside the help command you need to check if the argument is a or b

earnest phoenix
#

ooh

#

so like

#

if {} ?

quartz kindle
#

does you command handler have args?

earnest phoenix
#

ehm

#

good question

quartz kindle
#

do you have something like (client,message,args) or whatever

earnest phoenix
#
const discord = require("discord.js");

module.exports.run = async (bot, message, args) => {
}
module.exports.help = {

    name: "help",
    aliases: []

}
#

yeah

#

instead of client bot tho

quartz kindle
#

so args should be an array of words taken from the message

earnest phoenix
#

mhm

quartz kindle
#

try checking the contents of args in your console

sturdy delta
#

How do u do something simple like giving a role for 5 minutes and then taking it away

earnest phoenix
#

so

quartz kindle
#

if you type help a you should either get ["help","a"] or ["a"] in args

earnest phoenix
#

this is so confusing

#

wait

quartz kindle
#

@sturdy delta you can setup a timer

earnest phoenix
#

okay so I need to make a checker

quartz kindle
#

but if the bot restarts or crashes, the timer will be lost

#

unless you use a database

earnest phoenix
#
if(args = ["a"]){

}
quartz kindle
#

args is probably an array

#

do you know how to use arrays?

earnest phoenix
#

u mean => ?

mossy vine
#

what no

#

please learn js

earnest phoenix
#

oof

mossy vine
#

there are good resources pinned

quartz kindle
#

string = "content"
array = ["content1","content2","content3"]

earnest phoenix
#

ehm

quartz kindle
#

an array is a list of values

sturdy delta
#

Could someone explain to me how to use a database

quartz kindle
#

its not a single value

earnest phoenix
#

alright

#

So I got

sturdy delta
#

Because that’s the answer that everyone says to all my questions and then they don’t explain how to use a database

earnest phoenix
#

array = ["a", "b", "c"]

quartz kindle
#

there are many database systems out there, so first of all you need to chose one

desert bough
#

@quartz kindle im using it on a reaction event can i still use message.embeds?

mossy vine
#

@sturdy delta use a database, duh

quartz kindle
#

for example, a simple sql database is sqlite3

#

it doesnt require a server, and its not hard to use

#

but you need to learn a bit about the sql language

#

its quite different from javascript or python

#

another option is to use a nosql database, that is easier to use, and more similar to javascript objects, such as mongodb or leveldb

#

mongodb is a bit hard to setup tho, and requires running a server

#

so first of all try googling a bit about databases, their styles and use cases

#

@desert bough you can do reaction.message.embeds

#

i think

#

@earnest phoenix do console.log(args) in your help command, then type something like help a

#

and tell me what shows up in your console

earnest phoenix
#

so wait

#

I got my help command ready

#
const discord = require("discord.js");

module.exports.run = async (bot, message, args) => {

let hembed = new discord.RichEmbed()
.setColor("#ff852d")
.addField("test", "1");

message.channel.send(hembed);

}

module.exports.help = {

    name: "help",
    aliases: []

}
desert bough
earnest phoenix
#

try it šŸ˜„

desert bough
#

oof im scared of it breaking

earnest phoenix
#

u can do ctrl + z

quartz kindle
#

its says time is optional

#

so try removing it and see what happens

desert bough
#

ok

earnest phoenix
#

aight tim

quartz kindle
#

if it doesnt work, just put it back

earnest phoenix
#

I did this

#
const discord = require("discord.js");

module.exports.run = async (bot, message, args) => {

var cmd = ["a", "b"];

let hembed = new discord.RichEmbed()
.setColor("#ff852d")
.addField("test", "1");

message.channel.send(hembed);

}

module.exports.help = {

    name: "help",
    aliases: []

}
quartz kindle
#

you created a new array

#

what do you want to do with it?

earnest phoenix
#

Wait wasn't I supposed to do it

quartz kindle
#

nope, you're supposed to learn how arrays work

earnest phoenix
#

yeah let me see

#

Im gonna learn it tho

quartz kindle
#

how do you access a value in an array?

#

also, do you know how to use console.log()?

earnest phoenix
#

kind of

#

not totally

fringe rover
#

@earnest phoenix yo g

quartz kindle
#

console.log is extremely useful to debug code yourself

earnest phoenix
#

yeah?

sturdy delta
#

Console.log(args)

quartz kindle
#

so you dont code blindly

earnest phoenix
#

I never use it tbh

#

Like

#

ive used it

#

but now I don't

#

idk why

quartz kindle
#

if you're unsure whether something is working or not, or unsure about what the problem is, you can literally "see" the contents of all your variables and see exactly what values they are getting, modifying and creating

#

by using console.log

#

so you dont go around guessing things

earnest phoenix
#

oh thanks šŸ˜„

quartz kindle
#

i told you to try using console.log(args)

#

so you can see exactly what args is, what values does it contain

#

and proceed from there

sturdy delta
#

Yay I got it right šŸ˜›

desert bough
quartz kindle
#

weird

#

i dont see anything wrong there

#

except that you dont need to pass an empty object

#

you can just omit it

desert bough
#

wdym

quartz kindle
#

(accept)

desert bough
#

ive defined accept at the top

#

but im probs stupid

#

hold up

quartz kindle
#

yeah but you can jsut do (accept), no need for (accept,{})

#

most likely

desert bough
#

ok

quartz kindle
#

but that probably isnt the cause of your problem

#

do you have any other console.log ?

desert bough
#

yes but for other commands

quartz kindle
#

try .catch(e => console.log(e.toString()))

#

instead of catch(console.error)

#

although im pretty sure thats the the cause either

slim heart
#

That’s not even how catch work does it?

desert bough
#

still [object Object] on output

slim heart
#

Don’t you have to do catch(error=> or .catch(error) {}

quartz kindle
#

its catch(function(){}) yes

#

but you can shortcut it i believe

slim heart
#

No but catch won’t immediately define error

#

Catch returns a function itself

quartz kindle
desert bough
#

im not actually getting an error its just outputting it as [object Object] for some reasoon

quartz kindle
#

try .then(c => console.log("test"))

#

just to see if .then is ever reached

desert bough
#

ok gimme a sec

#

same output

quartz kindle
#

so .then is never being executed?

#

try to add back the timer then

#

put it on like 5 seconds

desert bough
#

whats that in miliseconds

quartz kindle
#

5000

#

@_@

slim heart
#

Try like error.message

quartz kindle
#

wait a min

desert bough
#

it works but problem is i dont want time to expire

quartz kindle
#

you're not using async await, and not using .then on msg.react

desert bough
#

but it also outputs the same thing again

quartz kindle
#

so isnt the collector getting your own reactions as well?

desert bough
#

yes

quartz kindle
#

if you remove the timer, it stops on the first reaction, i think?

#

so it starts and stops immediatelly? im not sure though, i havent used awaitreactions myself

desert bough
#

ah shit thats problem it

#

but can i get it to ignore teh bots reaction?

quartz kindle
#

in the filter probably

#

else just wait for your reactions to finish before you add the collector

#

if you use async await, you can await msg.react()

desert bough
#

id rather just use the filter

#

but what do i put it in

quartz kindle
#

else you need to msg.react().then(msg => msg.react()).then()... i think

desert bough
#

const accept = (reaction, user) => reaction.emoji.name === 'āœ…' && reaction.user.id != bot.user.id; would this work for the filter

quartz kindle
#

i think so, or simply && !reaction.user.bot

desert bough
quartz kindle
#

wait.. user is another argument lol

#

&& !user.bot

desert bough
#

still accepts teh bots reaction

quartz kindle
#

idk then

#

try waiting for the bot's reactions to finish

desert bough
#

ok

slim heart
#

how does that even work wouldnt it have to be return boolstuff not just boolstuff

#

or something. idk

#

@desert bough

#

or am i just wrong

#

nvrm

#

im wrong :p

late hill
#

How to image manipulation in js

#

Like when u check rank on mee6

#

I've googled

#

But like

#

idk

#

If someone could point me in the right direction that would be nice

slim heart
#

@late hill you can try jimp i think its called

late hill
#

Thank you

#

I'll mess around with that

inner jewel
#

@slim heart if it's a single expression you don't need return

slim heart
#

yea ik im dumb :D

inner jewel
#

(a) => a.b is the same as (a) => { return a .b }

tender quiver
#

Anyone can help me in java script?

sick cloud
quartz kindle
#

jimp is slow af

#

use sharp instead

#

or canvas if you're going to generate your own graphics

sick cloud
#

have any of you ever used a RPI?

#

i dug out my RPI3 and wanted to know if its possible to set it up as a music server that i can transfer music to, then when wanted my surround sound system takes it from it

topaz fjord
#

canvas is great

slim heart
#

@sick cloud well just make it store the files sent to it in a directory and then make like a localhost page where you can select the song and then connect to it over your local network then when pressed the rpi will play the music which should then have a built in headphone jack that you can use to connect to all your speakers or if you have a stripped down make audio lines go through gpi pins and solder it to a 3.5 jack etc.

sick cloud
#

can't hook up the system to the actual surround i think, but okay

slim heart
#

why not?

sick cloud
#

my idea was the surround (which is a Sony, top line stuff) would stream it or something

#

we already use all the ports

quartz kindle
#

you could use an external usb sound card that supports surround and stuff

slim heart
#

use a split lul

sick cloud
#

i'm trying to avoid using extra hardware or stuff

#

might read the manual and see if it has streaming

#

since it does connect to the wifi

slim heart
#

well in that case itd be even easier lol

quartz kindle
#

if it connects to wifi, it should support streaming

slim heart
#

shouldā„¢

quartz kindle
#

inb4 connects to wifi for no reason

sick cloud
#

wait if i got a usb to usb, could i use the rpi like a usb?

quartz kindle
#

not afaik

sick cloud
#

and i plug it into the system's external port and use it like that

slim heart
#

what does that even mean

quartz kindle
#

you'd need to have a dedicated partition and configure it accordingly to be accessible by external usb

#

the OS cannot make its own partition available

sick cloud
#

dang it

slim heart
#

you can use the gpi pins and a usb connector

sick cloud
#

talk about painful think

slim heart
#

or take a usb u dont care about and strip it to get all the wires and tin them or something to work with jumpers and stuff

sick cloud
#

hm ok

inner jewel
#

if you have some extra p2 cables you can try connecting them together

#

before:
<-- ================= -->

after:
<-- ========|======== -->
|======== -->

#

or something like that

#

afaik that should work

ruby dust
#

is there some easy way in discord.py I can limit users from using commands until the bot triggers on_ready event?

lyric talon
#

The MissingRequiredArgument

pale marsh
#

@ruby dust the bot won't even receive any events before it gets the ready event

ruby dust
#

it does, actually, it's just a bit slower when it's still in the middle of caching everything

pale marsh
#

Are you sure? Because iirc the ready event triggers and then caching starts. I'm pretty sure that's how it is

ruby dust
#

I think you are mixing the ready and connect events

pale marsh
#

Nope

ruby dust
#

there's on_ready and on_connect

pale marsh
#

Yeah I know

ruby dust
earnest phoenix
#

whats the proper way to create a guild invite in discord.js

pale marsh
#

Ah well that's another issue. discord.py doesn't fire the on_ready event as soon as the bot receives the ready event through the API

#

In that case register the commands in the on_ready event handler

ruby dust
#

hm

amber fractal
#

@earnest phoenix ^

earnest phoenix
#

gotcha i just found that : )

silver lintel
#

is there such thing as this to make something only work in a specific guild?

if (member.guild.id === "...") {
      
      stuff
  }
mental solstice
#

yes

reef oriole
#

Hey, so my bot has a hug command that if you mention someone (ie. @user1) it responds with @kyle hugged @user1!, but it also supports multiple mentions. While it works with two, like @kyle hugged @user1 and @user2, three or more gets odd, showing @kyle hugged @user1 and @user2 and @user3! and so on. Would anyone have an idea on doing a little bit of grammar to check how many users are hugged and change it to, say @kyle hugged @user1, @user2 and @user3!? It's node.js, thanks :)

quartz kindle
#

you can use a loop and check if the next item is the last

#

you can also join(", ") and replace last instance of "," with "and"

formal agate
#

need help with sqlite on why this might happen SQLITE_ERROR: near "280815367662731266": syntax error

#

Code: ```js
let userDataMap = [req.user.id, req.user.flags];
let placeholders = userDataMap.join(',');
let userData = 'INSERT INTO User(id) VALUES ' + placeholders;

  // output the INSERT statement
  console.log(userData);

  db.run(userData, userDataMap, function(err) {
    if (err) {
      return console.error(err.message);
    }
    console.log(`Rows inserted ${this.changes}`);
  });```
quartz kindle
#

node-sqlite3 or better-sqlite3?

earnest phoenix
#

hey

#

:v

earnest phoenix
#

anybody know why this is throwing an error? var globalArray = [ "531983325389389847", "532750205070737430", "534928293078761473", "531983926961504291", "531983516255387650" ];
Error: ```
SyntaxError: Unexpected token var
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:282:19)

#

Development Suggestion!Allowing a reaction message to limit your amount of reactions selected by any number the message maker deems necessary.

rotund mango
#

not sure if possible, as far as I'm aware (with my very little look into reactions) you can only remove your own one at a time, moderators (those with correct perms) can only delete all reactions. again I've not looked into it too much so don't take my word as gospel GWnanamiLaceShrug

bright spear
#

anyone with the manage messages permission can remove specific reactions

#

users and bots

sick cloud
#

did they finally remove var lmao

bright spear
#

nope

#

@earnest phoenix either ur putting that somewhere where it cant go, or u didnt close something above it

earnest phoenix
#

i put it in a client.on(ā€œguildMemberAddā€)

#

is that like illegal

last ferry
#

yea the fbi is gonna be at ur house any second

earnest phoenix
#

it’s fine i’ll just move it to a json or something

bright spear
#

@earnest phoenix can u send more code

#

cuz it should work there

#

but your code above it probably has an issue

earnest phoenix
#

i’m on mobile I’ll send it tomorrow if I can’t resolve it

rotund mango
#

I didn't even know it was possible for users to do that

#

let alone bots

sick cloud
#

the things you discover about discord every day lol

rotund mango
#

I used to do a movie night in a reddit server and had to clear reactions bc some peeps would type out 'fuck off' in reactions or some dumb thing like that GWqlabsFacepalm

sick cloud
earnest phoenix
#
const Discord = require(`discord.js`);

let user = message.author.username;
let avatar = message.author.diplayAvatarURL;

module.exports.run = async (bot, message, args) => {
var avatar = new Discord.RichEmbed();
avatar.setTitle(`${user}'s Avatar`);
avatar.setImage(`${avatar}`);
avatar.setColor(`#36393e`); //transparent color code -Emerald
avatar.setTimestamp();
message.channel.send({avatar});
}
module.exports.help = {
   name: "avatar"
}
inner jewel
#

{avatar}

#

you're doing message.channel.send({avatar: yourEmbed})

rotund mango
#

@sick cloud thats what I used but what about getting rid of singular reactions? isn't that what the person was asking about? like limiting a messages reactions to only 4 different emojis for example?

sick cloud
#

use the reaction menu

#

accessible through the same area, "Reactions"

#

choose the emoji and use the x

rotund mango
#

huh TIL

#

could be in 1.0.2 I just didn't look hard enough

sick cloud
#

not sure how a lib does it

#

discord.js has msg.reactions.removeAll()

reef oriole
#

@quartz kindle any suggested way of that? Still new to programming here so it's a bit confusing.

earnest phoenix
#

ąø—ąøŖ

soft vessel
#

I was trying to get the server count on the website to work, but I am a bit puzzled. I put in my token for dbl and all above this chunk.

sick cloud
#

what's in console?

amber fractal
#

Did you ever actually post?

#

Wait

#

That autoposts doesnt it

soft vessel
#

I think it is supposed to yes.

amber fractal
#

Was there anything in the console like Tony said

soft vessel
#

No it just says she's online and it works.

sick cloud
#

then it isn't posting

#

are you giving it the right client?

soft vessel
#

I'm pretty sure, I'll check again.

sick cloud
#

iirc it asks for the token and client, are you passing both the dbl token and your actual bot client

amber fractal
#

You can add a dbl.on('error', e => { console.log(e); }) aswell incase it errors for any reason, unless you have it already

#

Either way, i gtg to bed, gn

soft vessel
#

I have that already unfortunately, I think I might know the issue give me a moment.

#

Ah no, It's still not working. I'm not sure if I'm putting the client Id in the right spot hmm.

amber fractal
#

Id?

#

You pass the client dont you?

#

Yea the entire thing

#

You dont need an id

#

const dbl = new DBL('token-from-dbl', client)

soft vessel
#

Yes that's how I have it is, with the client. It's still not working.

amber fractal
#

The token is the token dbl gave you right?

#

Not your bot token from discord

soft vessel
#

Yes.

#

Correct.

amber fractal
#

Hm

#

And no error?

soft vessel
#

No error.

#

It just won't work.

amber fractal
#

And im guessing it didnt post and just didnt log then?

soft vessel
#

No it didn't, correct.

amber fractal
#

Then, im not really sure. Might be a website bug, if everthing is correct. Sorry i cant help

soft vessel
#

No worries! I'll keep troubleshooting. Thanks for trying to help! chibotsmile✨

shy rose
#

so on a scale of crap to shit how bad is it when ping localhost times out

sick cloud
#

does python have an equivalent to package.json files

ruby talon
#

Python can use JSON.

keen drift
#

@sick cloud No I don't think so, they share a global dependency store

ruby talon
#

@keen drift wdym ?

sick cloud
#

oh

keen drift
#

Which is why on a lot of repos, they specify the dependency prerequisites ig

ruby talon
#

Json lib

sick cloud
#

so i list my requirements in a json file?

keen drift
#

I seen people mostly list them on the repo readme

sick cloud
#

i just want people to be able to install the dependencies like pip install or something easy

keen drift
#

There's not really an equivalent to package.json

ruby talon
#

Uses almost sam syntax as in js.

Most ppl create a file called requirements.txt and list the names of the library's in there.

keen drift
#

@sick cloud Although you can prob look into pipenv

sick cloud
#

okayy

keen drift
#

pipenv can read requirements.txt to generate Pipfile

ruby talon
#

Idk if you want use heroku but from what I know heroku uses the requirements file to import everything too.

sick cloud
#

don't think heroku will help with making a game lol

ruby talon
#

Ps

#

@sick cloud if you want to make it as easy as possible for your client to run it make a python file with os system executions.
So that the client can install everything with one double click.

sick cloud
#

ok

ruby talon
#

And I would add a version to your libary.
So that if libary's get removed or changed and a new client tries it it works because it runs on the right (older) version.

keen drift
fiery nebula
restive silo
#

@keen drift do i see rust there

keen drift
#

@restive silo yes

earnest phoenix
#

How to make changable prefix

modest sorrel
#

have some file or database that stores prefixes for each guild and then have a function that determines the prefix

earnest phoenix
#

What is DBL token and what does it do?

modest sorrel
#

dbl token allows you to access the dbl api

blazing star
#

some routes need authentication eg: vote checking

wicked summit
#

why that happen? Nothing is undefined

<span class="select">
				<select name="channel">
				
          <option>Select Channel</option>
   <%guild.channels.filter(z=>z.type === 'text').array().forEach(x=>{%>
						<option value="<%x.id%>">#<%x.name %></option>
          <% }) %>
				</select>
			</span>  
``` im using ejs
#

guild = message.guild in d.js

quartz kindle
#

ejs is weird af

#

try using a hardcoded value instead of x.id and x.name just to see if it shows up

wicked summit
quartz kindle
#

i mean in the website/dashboard

earnest phoenix
#

Guys

wicked summit
#

lemme try it

earnest phoenix
#

My bot does music , and I run it in PowerShell so when something happens is shows me th error

#

The issue is

#

I can't play songs in other languages I would need the link

#

As PowerShell does not understand those other languages

quartz kindle
#

what do you mean

#

like àÉâõ?

wicked summit
#

still same

#

It's doesn't show up

quartz kindle
#

so the problem is not the js code, but the html

#

try it in a computer and use the inspector

#

to see how the html is being built

wicked summit
#

i have no pc lmao

quartz kindle
#

rip

wicked summit
#

yeah

quartz kindle
#

without inspector is impossible to debug a website loll

earnest phoenix
#

Yea

#

Like

quartz kindle
#

are you getting the music from youtube?

#

or where from?

earnest phoenix
#

Bplay مهرجان سجاره جاره

#

Yea

#

Youtube

#

PowerShell does not understand that language nor cmd

quartz kindle
#

try url-encoding it

wicked summit
#

wdym inspector?

earnest phoenix
#

Ctrl + shift +I

quartz kindle
#

the problem is not power shell or cmd, the problem is that urls do not support it

#

if you put that in a search url in a browser, the browser will automatically url encode it

#

but without a browser you have to encode it yourself

earnest phoenix
#

Mm

quartz kindle
#

you're using c# right?

earnest phoenix
#

No

#

Js

quartz kindle
#

oh then its easy

earnest phoenix
#

Alright I will give it a try when I get home

quartz kindle
wicked summit
earnest phoenix
#

@wicked summit there is html server I could invite you to

#

If that would not be considered as advertising but those people are legends

quartz kindle
#

wait, you said you tried hardcoded values and it still dint work

#

what did you try?

wicked summit
#

I try it in <h1><%x.name%></h1>

quartz kindle
#

no... i mean this

wicked summit
#

Hmn

quartz kindle
#

<option value="test">test</option>

#

a hardcoded value test instead of using the x variable

#

to see if it shows up

#

if test shows up, then the html is fine

wicked summit
#

Its work

quartz kindle
#

yeah then the problem is the js part

wicked summit
#

hmm

#

Idk why

quartz kindle
#

try removing the .array()

#

.forEach() should work on collections

wicked summit
#

Same

#

I already try everthing what i know with Collections

quartz kindle
#

if you console.log them, does it appear in your console?

#

if all else fails, try using string concatenation instead of ejs

wicked summit
#

Can u give me example?

quartz kindle
#
let string = "";
....forEach(x => {
    string += `<option value="${x.id}">${x.name}</option>`
})

#

then insert string into your <select> using ejs

#

but first try console.logging

#
....forEach(x => console.log(x))
#

to make sure the channels are actually there

wicked summit
#

yeah i tried log it and successfully

#

an i tried console.log(x.name) and all channels name show up

quartz kindle
#

so try building a string instead of ejs shanenigans

wicked summit
#

@quartz kindle

#

It wont show up

slim heart
#

What’s with the %’s

wicked summit
#

It's ejs

slim heart
#

Oh ok

quartz kindle
#

ejs is weird af

#

wait let me read some of their docs

wicked summit
#

Ok thx

quartz kindle
#

found your problem

#

<%= Outputs the value into the template (HTML escaped)

#

<% 'Scriptlet' tag, for control-flow, no output

#

you can go back to what you had before, just do <%= instead of <%

wicked summit
#

Ok

#

So its <%= x.id %> ?

quartz kindle
#

yes

wicked summit
#

Thanks

#

Working now

quartz kindle
#

šŸ‘

fiery nebula
#

anyone knows how to exclude files from nodemon bot restart?

earnest phoenix
dull idol
#

9 categories~

#

39 text~

#

in: Discord.js

fiery nebula
#

ur code now?

dull idol
#

...

scarlet solar
#

Wtf my bot is not responding and i have this in the logs
2019-01-16T12:19:23.744111+00:00 app[worker.1]: [Symbol(kBytesWritten)]: 2687,2019-01-16T12:19:23.744112+00:00 app[worker.1]: [Symbol(connect-options)]: [Object] },2019-01-16T12:19:23.744113+00:00 app[worker.1]: _error: null,2019-01-16T12:19:23.744116+00:00 app[worker.1]: url: 'wss://gateway.discord.gg/?v=6&encoding=json',2019-01-16T12:19:23.744117+00:00 app[worker.1]: _req: null },2019-01-16T12:19:23.744118+00:00 app[worker.1]: type: 'error',2019-01-16T12:19:23.744119+00:00 app[worker.1]: message: 'read ECONNRESET',2019-01-16T12:19:23.744121+00:00 app[worker.1]: error:2019-01-16T12:19:23.744122+00:00 app[worker.1]: { Error: read ECONNRESET2019-01-16T12 :19:23.744125+00:00 app[worker.1]: at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' } }
And my bot is online tho

smoky mica
#

My bot doesn't respond to a specific command serverinfo but it was before. There is no error and I've no idea why this is happening

wicked tusk
#

pls help

fiery nebula
#

@smoky mica try return message.channel.send("Test");

smoky mica
#

I just tried that and its not sending.

#

@fiery nebula No idea why. Lemme try something really quick

fiery nebula
#

show me the code

smoky mica
#

i knew it wasnt the code lol

#

i tried deleting the file (copied the code ofc) made a new file and pasted the code in it

#

idk some weird sorta glitch

fiery nebula
#

tf

earnest phoenix
#
let target = message.mentions.users.first() || message.author;

.addField("Roles", `${target.roles}`, true)

isn't it .roles

latent willow
#

A GuildMember has roles a user object doesn't

fiery nebula
#

^

#

message.member.roles

sick cloud
#

change users/author to members/member oliypls

#

who the f uses message though lol

fiery nebula
#

we're already 2

earnest phoenix
#

@wispy falcon

rocky dagger
amber fractal
#

Well addrole isnt even a js file

#

Btw, regen your token and dont put it on github

#

You can view past commits

#

@rocky dagger

#

Also using find without a function is deprecated

rocky dagger
#

The token isn't showing for me...

amber fractal
#

View past commita

#

Commits*

earnest phoenix
#

tfw you manually update every file on your repo

amber fractal
#

Just regen it

rocky dagger
#

I am new to github

amber fractal
#

Just regen the token,it will be fine

rocky dagger
#

yea I did that

slim heart
#

@rocky dagger and then to answer the initial problem like what Steven said look up .find because it’s different now

earnest phoenix
#

How can i use a custom emoji on my discord bot and it work everywhere?

#

Can anyone help me figure out how i can use a custom emoji with my bot and it works anywhere without it having to be a custom emoji on that discord guild?

#

In discord.js

smoky spire
#

Get the emoji from client.emojis

slim heart
#

@earnest phoenix ^

earnest phoenix
#

How would i use them from in my command handler

slim heart
#

Get the emoji and then send it with the message

earnest phoenix
#
const Discord = require("discord.js");

module.exports.run = async (bot, message, args) => {
    var canal = message.guild.channels.find('name', 'incidents');
    let member = message.mentions.members.first() || message.guild.members.get(args[0]);
    if (!member)
        return message.reply("Mention a user please");
    let reason = args.slice(1).join(' ');
    if (!reason) reason = "Mention a reason please";
  message.channel.send("They have been warned!");
    let embed = new Discord.RichEmbed()
        .setColor('#00d7ff')
        .setThumbnail(message.author.avatarURL)
        .setTitle(`Warning Case - #mod-logs`)
        .addField('Moderator:', message.author)
        .addField('User:', member.user)
        .addField('Reason:', reason)
        .setFooter(`Warned by ${message.author.username}.`)
        .setTimestamp()
    canal.send(embed);
}

module.exports.help = {
    name: "warn"
}

I want it to show the emoji before the "They have been warned"

#

@slim heart ^^^

slim heart
#

Just get the emoji and then do emoji + ā€œthe have been warnedā€

earnest phoenix
#

i have the emoji id but then emoji would be undefined

slim heart
#

what’re you doing to get the emoji

smoky spire
#

client.emojis.get("idhere")

slim heart
#

Keenser don’t spoonfeed

#

Hhh

smoky spire
#

That's not šŸ„„

slim heart
#

Kinda is

#

If they don’t understand how it works then don’t just give them the line of code to do it let them figure it out

earnest phoenix
#

let emoji = bot.emojis.get("441123513466748929");

???

smoky spire
#

he still has to figure out how to send it

slim heart
#

Yes

#

I showed him how to send it already that’s the part I’d give because that can get a little confusing

earnest phoenix
#

Thank yall for the help its highly appreciated!

slim heart
#

Yea

fringe rover
#

Yo How do I get My Bot Online ?

earnest phoenix
#

@slim heart the emoji shows as "undefined"

slim heart
#

@fringe rover login to it via code with your bot token

#

@earnest phoenix send the code?

fringe rover
#

@slim heart yes but dunno how to code indo

#

It