#development

1 messages · Page 538 of 1

west raptor
#

im not good with py

earnest phoenix
#
async def on_ready():
print("The bot is ready!")
await client.change_presence(game=discord.Game(name="Making a bot"))@client.event
async def on_message(message):
if message.author == client.user:
return```
#

I think...

fading turret
#

wait

earnest phoenix
#

@fading turret We both gave you the cde

#

bye

fading turret
#

it says message is not defined

earnest phoenix
#

Sucks

#

Learn programming

#

I'm not going to spoon feed you

#

That was typed on a 5-year-old phone,

#

it is probs wrong.

#

The idea is you get the general gist.

#

So

misty rune
#

is !d music help more intuitive than !d help music

#

in order to get the help of the music module

earnest phoenix
#

life is a lie

#

your command structure won't matter in 20 years

#

do what you want

#

but yes

#

help should be after

misty rune
#

mhh

#

ok then

#

thanks

earnest phoenix
#

How would I grab new YouTube Uploads from a specific youtuber using Webhooks? I'm not familiar with using Webhooks

knotty steeple
#

who does coffeescript

#

oh no one

earnest phoenix
#

oof

nocturne radish
#

pls rich

earnest phoenix
#

no u

nocturne radish
#

kkk

earnest phoenix
#

wow

#

easy

#

@knotty steeple You familiar with webhooks?

knotty steeple
#

no

earnest phoenix
#

god dayum

#

How would I grab new YouTube Uploads from a specific youtuber using Webhooks? I'm not familiar with using Webhooks
PING ME WHEN YOU RESPOND! JavaScript btw

void spade
#

Hi

#

How do I get the bot developer role?

hot echo
#

you develop a bot

void spade
#

Yes

#

Im waiting for it to be approved

#

@hot echo y?

hot echo
#

once its approved you will prob get a role

#

Luca will tell you if your bot has been approved

void spade
#

K

raven bronze
heady anvil
#

money

raven bronze
#

no i mean like hosting softwares.

heady anvil
#

a vps

raven bronze
#

WHERE DO I FIND A GOOD VPS

heady anvil
#

ovh

#

there's many out there though

raven bronze
#

exacly my point

#

POLL (sorry spooder lmao and c)

I need a name for my dictionary bot (dont steal me idea)

  1. Words
  2. Dictionary
  3. Word Bot
  4. Dictionary Bot
  5. Word Definitions
earnest phoenix
#

I use their more expensive plans, but they have very cheap vps's

junior hornet
#

hi does any one know how to set up a music command in discord.js ?

mossy vine
#

how about no

junior hornet
#

ok we dont need to be rude about it

mossy vine
#

ok we dont spoonfeed here

#

look at examples on github

junior hornet
#

i know do you know any links to github

#

that can help

mossy vine
junior hornet
#

thx

mossy vine
#

yw

inner jewel
#

jmusicbot isn't even js

junior hornet
#

i just now relized that im an idiot

mossy vine
#

oh

#

sorry about that, i just searched for music in #mod-logs

junior hornet
#

natan atalanta is what inspired me to start programing

#

also c your fine

earnest phoenix
#

This includes music commands

#

So its not fully spoonfed

junior hornet
#

thx rain

earnest phoenix
#

np

spring ember
#

(JDBC)

#

I mean it looks fucking disgusting and I have 0 intention of using an ORM or an alternative that uses jdbc

high anchor
#

How do I force discordjs to get the textchannel instead of the guildchannel so i can reliably access msg.channel.topic

spring ember
#

@high anchor from message? from what?

knotty steeple
#

TypeError: Cannot set property 'random' of undefined anyone know why i would be getting this

#

facts.random = () -> @facts[Math.floor(Math.random * api.facts.length)]

#

coffeescript btw

spring ember
#

facts is undefined

#

really sam

knotty steeple
#

noitsnot

spring ember
#

send full code then

knotty steeple
#

e

#

is it because its below that

#

pls

spring ember
#

is fact's declaration below this lmao

#

yes

#

this would be the issue

knotty steeple
#

a

#

this is what happens when u dont get sleep

#

ok cool thanks

inner jewel
#

@spring ember try with resources

spring ember
#

Scala

inner jewel
#

actually

spring ember
inner jewel
#

yeah

#

scala doesn't have it

#

maybe create a wrapper?

spring ember
#

I am in the middle of making one because of AutoClosable

#

I think it extends it

inner jewel
knotty steeple
#

huh

#

im getting invalid token

spring ember
#

so I have done this

inner jewel
#

you could probably make a macro to defer closing to the end of a block

knotty steeple
#

though i just got it from the dev page

spring ember
#

but it somehow thinks it's not infered

#

I am not sure why

#

nvm

#

I changed it to return 0

#

it's wierd because Scala usually does use the last value as return

inner jewel
#

scala has non local return

#

i'd get rid of those returns

#
using(rs) { if(rs.next()) rs.getInt("totalvotes") else 0 }```
spring ember
#

sexy

#

thanks

#

Natan also finally defers that's why people usually use it

#

it always executes after the try block closes

#

and before the next block begins

#

like Java

#

@inner jewel it doesn't accept without returning explicitly

#

super wierd

#

especially that the other usings return on last value

inner jewel
#

huh

#

what's your using method?

spring ember
inner jewel
#

weird

#

OH

spring ember
#

I KNOW

inner jewel
#

add an overload with f: () => B

#

because that's the type of the closure you pass to using(rs)

#

or you couldscala using(stmt.executeQuery()) { rs => if(rs.next()) rs.getInt("totalvotes") else 0 }

spring ember
#

that's way hotter yes

#

Thanks Natan

inner jewel
#

it'd be possible to defer closing with implicits but that'd be a bit more complicated

#

would lead to somewhat cleaner code

earnest phoenix
#

it's closeup

fading turret
#

how do you add a ban command to your bot in python?

inner jewel
#
closing { (implicit c: CloseContext) =>
    val conn = deferClose(pool.getConnection())
    val stmt = deferClose(conn.prepareStatement("..."))
    stmt.setInt(...)
    val rs = deferClose(stmt.executeQuery())
    if(rs.next()) rs.getInt(...) else 0
}```
knotty steeple
#

anyone want to tell @earnest phoenix wrong channel?

inner jewel
#

if you made it a macro you could find AutoCloseable subtypes based on static analysis

#

but that's complex

earnest phoenix
#
    <p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = bot.guilds.size;
</script>

why its not work?
How should I do this work?

mossy vine
#

are you sure bot is defined

earnest phoenix
#
       <p id="demo"></p>
<script>
var bot = new Discord.Client();
document.getElementById("demo").innerHTML = bot.guilds.size;
</script>

its not work also this way

mossy vine
#

i wonder why

#

because you arent actually logged in with your bot

earnest phoenix
#

ho

mossy vine
#

and i dont know about you, but i wouldnt want my token to be literally available in the source of my website

earnest phoenix
#
       <p id="demo"></p>
<script>
var bot = new Discord.Client();
document.getElementById("demo").innerHTML = bot.guilds.size;
bot.login(process.env.TOKEN);
</script>
modest shore
#

i think you should login before you request the guild size

earnest phoenix
#

ok

modest shore
#
       <p id="demo"></p>
<script>
var bot = new Discord.Client();
bot.login(process.env.TOKEN);
document.getElementById("demo").innerHTML = bot.guilds.size;
</script>
earnest phoenix
#

its not work

modest shore
#

hm

earnest phoenix
#

where its need to be?

languid dragon
#

why are you making a javascript bot using script tags in HTML

#

people can take your token from that you know

mossy vine
#

thats what i said earlier

#

and it basically makes the bot start a new instance every time the website is visited

fading turret
#

i got this unban script for python but it says self is not defined

knotty steeple
#
coffee.on("guildCreate", guild => {
    coffee.editStatus({name: `Brewing Coffee in ${coffee.guilds.size} servers! @Coffee#3719 for help`})
    coffee.channels.get("523824132492886034").createMessage(`📥 Joined a new server called ${guild.name} (${guild.id}). Member count: ${guild.members.filter(m => !m.user.bot).size}/${guild.members.filter(m => m.user.bot).size} (Users/Bots)`)
})
``` hi this piece of code isnt working i dont know why
#

anyone can say why it wouldnt be working

marsh lark
#

d.js?

inner jewel
#

what exactly isn't working?

knotty steeple
#

it doesnt send any message to that channel

#

i dont see any logs about it

queen violet
#

what error

#

oh nvm

ruby dust
#

does discord.py's AutoShardedBot object share the same guild/user caches from all shards?

earnest phoenix
#

how do you turn off @everyone when making a bot

west raptor
#

what lang

#

and lib

#

@earnest phoenix

earnest phoenix
#

also

#

when i said bot

#

bot

west raptor
#

just fucking

#

say the lib

#

u r using

high anchor
#

@spring ember i resolved the issue, the scope wasn’t passing to the promise correctly for some reason lol

spring ember
#

lol

knotty steeple
#

also this is "js" if you cant tell

#

its actually coffeescript but who cares

#
props.file = f
@commands.set [props.info.name, props]
props.settings.aliases.forEach (a) -> 
    @aliases.set [a, props.info.name]
loggr.info "#{f.slice(0, -3)} has finished loading!"
#

^ in jsjs props.file = f this.commands.set(props.info.name, props) props.settings.aliases.forEach(a => { this.aliases.set(a, props.info.name) }) loggr.info(`${f.slice(0, -3)} has finished loading!`)

west raptor
#

why would this be undefined though

knotty steeple
#

i dont know???

west raptor
#

can you compile it

queen violet
#

where are you running that

#

can you do console.log(this)

west raptor
#

coffee --compile dir

knotty steeple
#

does it compile everything

west raptor
#

uh

#

what file

#

is that in

knotty steeple
#

check rpc

west raptor
#

coffee --compile CoffeeClient.coffee

#

and show the js

#

it compiles

knotty steeple
#

ok i compiled it

west raptor
#

show js

knotty steeple
#

uh

#
              props.file = f;
              this.commands.set([props.info.name, props]);
              props.settings.aliases.forEach(function(a) {
                return this.aliases.set([a, props.info.name]);
              });
              return loggr.info(`${f.slice(0, -3)} has finished loading!`);
west raptor
#

all of it

knotty steeple
#

E

#

hastebin

#

can i just post the loadcommands func

#
      this.loadCommands = function() {
        return fs.readdir("./commands/", function(err, cmds) {
          if (cmds.length === 0) {
            loggr.info("There are no commands to load!");
          }
          if (err) {
            throw err;
          }
          return cmds.forEach(function(f) {
            var props;
            props = require(`../../commands/${f}`);
            if (props.settings.disabled) {
              loggr.info(`${f.slice(0, -3)} has been disabled, reason: ${props.settings.disabled.reason}`);
              props.file = f;
              this.commands.set([props.info.name, props]);
              return props.settings.aliases.forEach(a)(function() {
                return this.aliases.set([a, props.info.name]);
              });
            } else {
              props.file = f;
              this.commands.set([props.info.name, props]);
              props.settings.aliases.forEach(function(a) {
                return this.aliases.set([a, props.info.name]);
              });
              return loggr.info(`${f.slice(0, -3)} has finished loading!`);
            }
          });
        });
      };
west raptor
#

hm

#

weird

#

i dont see why it would be undefined

uncut slate
#

cmds.forEach(function(f) {

knotty steeple
#

thats weird

uncut slate
#

use an arrow or store this outside of your scope

knotty steeple
#

cant do the first one

#

ill do the second

uncut slate
#

why can't you use an arrow

knotty steeple
#

coffeescript

#

idk how would you do it

#

with that

uncut slate
#

just use a fat arrow instead of a thin arrow

#

=> v. ->

knotty steeple
#

same thing

#

except undefined is null

raven bronze
#

Does anyone know how to use a embed without colors, i have seen it before.

knotty steeple
#

dont put a color

#

solved

raven bronze
#

...

knotty steeple
#

thats all you have to do

#

lmao

west raptor
#

i have the hex somewhere

#

lemme find it

raven bronze
knotty steeple
#

you said no color?

raven bronze
#

yes

knotty steeple
#

thats no color

raven bronze
#

no strip of color on the side*

west raptor
#

try

#

#36393E

#

@raven bronze ^

raven bronze
#

yes that works quite well thanks

west raptor
#

np

late hill
#

You can't remove the color 😂

#

You're just making it look the same

#

Which that method is already fucked if they use light theme instead of dark

west raptor
#

^

late hill
#

Or if they use client mods 👀

west raptor
#

👀

bright spear
#

also the left corners will be sharp

west raptor
#

actually

#

nvm

#

they are a little

#

im blind

late hill
#

..

bright spear
#

thats a codeblock not an embed

west raptor
#

h

#

oh

#

sorry

#

i was just scrolling trying to find one and my brain thought that was an embed

#

lol

high anchor
#

I wonder how many bots directly interact with the Discord API instead of through a library

#

Stupid question

#

At that point you’d just build your own lib/interface mmLol

west raptor
#

I really doubt anybody really does

#

It's really unsafe

sick cloud
#

@high anchor its pretty simple to do, gateway connection, identify, etc. but its painful and i bet no public bots directly interact

inner jewel
#

it's not exactly simple

#

connecting is, but doing anything more gets complicated very quickly

#

eg properly handling rest ratelimits, calculating permissions, keeping a cache

west raptor
#

which one?

#

I have no idea

#

ask @queen violet

queen violet
#

prolog

earnest phoenix
#

i mean

#

that how code blocks work

empty owl
#

Shards Guilds

#

yeah

earnest phoenix
#

oog

#

oof

bright spear
bold pagoda
#

@earnest phoenix using css

#

That's how u get color

lilac grail
#

how to make it like this

#

i really dont know how to.

mossy vine
#

@lilac grail use css

high anchor
#

my eyes

fleet mason
#
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::5000
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at Server.setupListenHandle [as _listen2] (net.js:1367:14)
    at listenInCluster (net.js:1408:12)
    at Server.listen (net.js:1492:7)
    at DBLWebhook._startWebhook (/home/ubuntu/bot/node_modules/dblapi.js/src/webhook.js:45:18)
    at new DBLWebhook (/home/ubuntu/bot/node_modules/dblapi.js/src/webhook.js:27:12)
    at new DBLAPI (/home/ubuntu/bot/node_modules/dblapi.js/src/index.js:69:22)
    at Object.<anonymous> (/home/ubuntu/bot/HALOindex.js:14:13)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
#

anyone?

bitter sundial
#

the port is already in use

#

close the program using it or choose another port

knotty steeple
#

does anyone know how the emit function works

#

eris

#

nvm

lilac grail
#

@mossy vine how?

#

is there any tutorial?

mossy vine
#

what do you mean how?

lilac grail
#

I mean, continue the topic.

mossy vine
#

uhm... you add css in your html description

lilac grail
#

tutorial?

knotty steeple
#

there is no tutorial

#

you literally just

#
<style>
css
</style>```
misty rune
#

i would like a way to get a random word from the english disctionnary

#

no need of the definition or anything like that just a random word

#

with if possible a way to specifie filter like length and if i want a word splitted with -

#

do you know any ?

lament meteor
#

get a array of words and pick a random one

misty rune
#

i guess yeah

earnest phoenix
#

its exists fornat?
moment.duration(ms(args[1])).format("ms [miliseconds]")

mossy vine
#

what is the rate limit for editing messages (in different channels)

lament meteor
#

5/5 i think

#

oh actually in differnt channels im not sure

slim heart
#

Well if it’s 5/5 in one channel then it’d be 50/10 across guilds I guess? I guess it’s the same as the normal message send? Idrk tho that answer is dependent on @lament meteor’s answer @mossy vine

#

Oh yeah it is 50/10 global

#

However I’m pretty sure that it’s only 5/5 per server so therefore you’ll still be stuck at 5/5 if the channels are in the same guild??

#

Maybe? Not sure tho

inner jewel
#

global is 50/1

#

ratelimits are per channel for messages

#

5/5s

mossy vine
#

so i can edit a message once every second, correct?

inner jewel
#

you can, but shouldn't for long periods of time

#

if it's eg, 5 edits then you'll be fine

#

but even if you stay inside the ratelimits it can still be api spam

mossy vine
#

oh, so its better to just send new messages instead of editing one?

inner jewel
#

no

#

same thing happens

mossy vine
#

hmm, i guess ill try achieveing a similar effect with a different method then

#

thanks for helping

arctic nexus
#

How i make that everyone can use my bot, i use .js

misty rune
#

?

#

how can't they already ?

#

is it private ?

latent sleet
#

anyone willing to help me code my bot so it works better i dont really get javascript

#

im a coding novice

empty owl
#

Um

latent sleet
#

um what

quartz kindle
#

if you mean "help me code my bot" as in "code my bot for me", then no

latent sleet
#

no no i need some help

quartz kindle
#

then explain exactly what you need and post the code in question

mossy vine
#

nice token

quartz kindle
#

with code blocks please

latent sleet
#

this is my bot rn

quartz kindle
#

and you just hacked yourself

mossy vine
#

wait what hte actual fuck is that code lmaooo

quartz kindle
#

you posted your token, which will give anyone access to your bot

#

i suggest you go to back to the discord app page and reset it

mossy vine
#

^

latent sleet
#

`const Discord = require ('discord.js')
const bot = new Discord.Client();
const TOKEN = 'insert token'

bot.on('message', function(message){
if(message.content == 'kys')
{
message.reply('No u');
}
})
bot.on('message', function(message){
if(message.content == 'gay')
{
message.reply('No u');
}
});

bot.login(TOKEN);`

quartz kindle
#

triple `

latent sleet
#

like i said coding novice

mossy vine
#

so whats your issue?

latent sleet
#

like this

quartz kindle
#

yes

latent sleet
#

i cant get the second msg to work

#

its an anti swear bot

quartz kindle
#

also, dont repeat bot.on("message..."

#

use it only once, and put all your commands inside it

#

else you're making your bot do double the work

mossy vine
#

and after 11 of those d.js will go crazy

#

you have 2 event listeners when you could have just 1

latent sleet
#
const bot = new Discord.Client();
const TOKEN = '*token*'

bot.on('message', function(message){
    if(message.content == 'kys')
    {
        message.reply('No u');
    }
})
function(message){
    if(message.content == 'gay')
    {
        message.reply('No u');
    }
});

bot.login(TOKEN);``` so like this?
quartz kindle
#

dont repeat function either

latent sleet
#

k

quartz kindle
#

let me try to explain

latent sleet
#

i only realy know a bit of html so coding novice

quartz kindle
#
bot.on("event",function)
^ listen to bot
        ^what to listen to
                    ^what to do when you hear something```
#
function(arguments){code}
^ function block
            ^ things to send into the function
                    ^the function itself```
#
bot.on("message",function(){ your code goes here. ALL of it })```
latent sleet
#

🤔

quartz kindle
#
bot.on("message",function(){
    you can also do like this, doesnt matter
})
latent sleet
#

is there also a way to detect a single word in a whole sentence

mossy vine
#

yes

latent sleet
#

so...

#

what way?

#
    if(message.content == 'kys')
    {
        message.reply('No u');

    if(message.content == 'gay')
    {
        message.reply('No u');
    }
});

bot.login(TOKEN);```
#

i got this now it good?

#

it still doesn't work

quartz kindle
#

yes, thats the correct way. you just forgot a closing bracket

latent sleet
#

thanks

#

lemie test that shit bruh

topaz fjord
#

nou

latent sleet
#

it does not work

#

this whot i got

late hill
vernal rivet
#

What's up?

quartz kindle
#

whot u got?

latent sleet
#
const bot = new Discord.Client();
const TOKEN = '*token*'

bot.on('message', function(message){
    if(message.content == 'kys')
    {
        message.reply('No u');
    }
    if(message.content == 'gay')
    {
        message.reply('No u');
    }
});

bot.login(TOKEN);```
quartz kindle
#

any error message?

latent sleet
#

nope

late hill
#

You're gonna have to reset your token now sir

latent sleet
#

the other one wokrk just fine though

vernal rivet
#

Try doing 3 = instead of two of them

quartz kindle
#

add this to your code js bot.on("ready",function(){ console.log("ok") })

late hill
#

You deleted the message but multiple bots logged your token in #265156361791209475 just saying..

vernal rivet
#

And instead of function do async

modest shore
#

why is every bot logging messages wtf

vernal rivet
#

Cause they were design to

latent sleet
#
const bot = new Discord.Client();
const TOKEN = '*token*'

bot.on('message', async(message){
    if(message.content == 'kys')
    {
        message.reply('No u');
    }
    if(message.content == 'gay')
    {
        message.reply('No u');
    }
});
bot.on("ready",async(){
    console.log("ok")
})
bot.login(TOKEN);``` like this
vernal rivet
#

Close

quartz kindle
#

no thats wrong

#

also you dont need async lol

vernal rivet
#

It's a worth a shot to use async

latent sleet
#

thanks

modest shore
#

@latent sleet you should change your bot token

quartz kindle
#

async works like this

latent sleet
#

ill just change it back nw

quartz kindle
#
function() {} //normal function
async function() {} //async function```
#

but you dont need async

vernal rivet
#

=> don't forget that

#

Async() =>{}

quartz kindle
#

arrow functions are something else

#

they are not directly related to async

vernal rivet
#

Also isn't J's need === to exactly equal to something?

latent sleet
#

refreshed the token

vernal rivet
#

Instead of ==

late hill
#

It's better yes

#

More safe

vernal rivet
#

Yes

late hill
#

And seen as a good practise

#

He should also combine those 2 if's

#

And just use an or

#

||

vernal rivet
#

Yes

latent sleet
#
const bot = new Discord.Client();
const TOKEN = '*token*'

bot.on('message', function(message){
    if(message.content == 'kys')
    {
        message.reply('No u');
    }
    if(message.content == 'gay')
    {
        message.reply('No u');
    }
});
bot.on("ready",function(){
    console.log("ok")
})
bot.login(TOKEN);```
#

remove an if?

vernal rivet
#

Why is the ready event last?

quartz kindle
#

alright, run the bot, and check if you get "ok" in your console

late hill
#

The order doesn't matter koreanpanda

vernal rivet
#

I mean it works, but why last

quartz kindle
#

the order of events doesnt matter

late hill
#

But yeh

#

Doesn't make sense

vernal rivet
#

I know that, but it's more sense if its first

latent sleet
#
    at WebSocketConnection.client.ws.connection.once.event (C:\Users\bartw\Desktop\testbot\node_modules\discord.js\src\client\ClientManager.js:48:41)
    at Object.onceWrapper (events.js:277:13)
    at WebSocketConnection.emit (events.js:189:13)
    at WebSocketConnection.onClose (C:\Users\bartw\Desktop\testbot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:390:10)
    at WebSocket.onClose (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\event-target.js:124:16)
    at WebSocket.emit (events.js:189:13)
    at _receiver.cleanup (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\websocket.js:220:12)
    at Receiver.cleanup (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\receiver.js:535:15)
    at WebSocket.finalize (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\websocket.js:206:20)
    at TLSSocket.emit (events.js:194:15)
(node:69416) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of
an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:69416) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that
are not handled will terminate the Node.js process with a non-zero exit code.
PS C:\Users\bartw\Desktop\testbot>```
quartz kindle
#

there's your answer

#

your token is wrong

vernal rivet
#

Oof

quartz kindle
#

make sure you changed it in your code as well, after you reset it in discord

latent sleet
#

i did copy it after i changed it

mossy vine
#

imho its better to have the less important but necessary parts on the bottom (ready, login, etc.) and important parts (require, functions, etc.) on the top

vernal rivet
#

;-;

late hill
#

But if you use seperate files

#

The code is short anyway

mossy vine
#

Yes

vernal rivet
#

Use command handlers

late hill
#

In your main file

latent sleet
#

???

vernal rivet
#

But you want it to make sense

quartz kindle
#

guys

#

stop confusing him lmao

late hill
#

😂

vernal rivet
#

;-;

latent sleet
#

i literetly started today

vernal rivet
#

It's all good

quartz kindle
#

@latent sleet try reseting the token again, and copy/pasting it again, make sure you save your code, and try running it again. it should say "ok" in your console

vernal rivet
#

This literally happen to me the first day I did this

latent sleet
#
(node:72544) UnhandledPromiseRejectionWarning: Error: Incorrect login details were provided.
    at WebSocketConnection.client.ws.connection.once.event (C:\Users\bartw\Desktop\testbot\node_modules\discord.js\src\client\ClientManager.js:48:41)
    at Object.onceWrapper (events.js:277:13)
    at WebSocketConnection.emit (events.js:189:13)
    at WebSocketConnection.onClose (C:\Users\bartw\Desktop\testbot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:390:10)
    at WebSocket.onClose (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\event-target.js:124:16)
    at WebSocket.emit (events.js:189:13)
    at _receiver.cleanup (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\websocket.js:220:12)
    at Receiver.cleanup (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\receiver.js:535:15)
    at WebSocket.finalize (C:\Users\bartw\Desktop\testbot\node_modules\ws\lib\websocket.js:206:20)
    at TLSSocket.emit (events.js:194:15)
(node:72544) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of
an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:72544) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that
are not handled will terminate the Node.js process with a non-zero exit code.
PS C:\Users\bartw\Desktop\testbot>```
vernal rivet
#

I want to say you were watching a tutorial, I want to say threebrow, but it's not

latent sleet
#

im tryng

vernal rivet
#

Ummmmmm...I would suggest you watch source code, he will most likely help you a ton

latent sleet
#

are you guys on tomorrow?

vernal rivet
#

Yes

#

Will I be available, depends if I don't have class

latent sleet
#

im in Central European Time

vernal rivet
#

During that time

#

I am on the west coast

latent sleet
#

of...

vernal rivet
#

Us

latent sleet
#

its still urly for you huh

vernal rivet
#

It's only 1:16 pm for me

latent sleet
#

well im going to sleep thanks for the help i wil be back tommorow i wil try to lear via youtube

vernal rivet
#

Ok

earnest phoenix
#

is it possible to have a python file literally just open another python file, and if so, how?

#

@earnest phoenix execfile('file.py')

#

Or import filename

#

Execfile is really easy to be hacked

#

I suggest using import filename @earnest phoenix if this is what you mean by open...

#

I don’t believe it’s possible for a file to be able to physically open another

#

@earnest phoenix how does it allow you to be hacked?

#

im just trying to get my discord bot to run another version of itself

#

It is just the most vulnerable way of opening a file

#

@earnest phoenix so shards?

#

Explain in more detail

#

What exactly do you want to do

#

im trying to have my bot restart itself

#

close itself and open another version

#

so when im not home i can just type a command if something messes u

#

up

#

Hmmmm

#

It’s not possible I don’t think

#

fr ?

#

damn

#

You as a human have to open the file

#

The python script can’t

#

is there any languages that can do that

#

Erm

#

Setup a 24/7 host

#

they all cost money tho

#

plus thats not my issue

#

Not if you use https://glitch.com

#

sometimes it just randomly fucks up, but the whole bot never crashes

#

@earnest phoenix then your command has an error

#

well no

#

its just people spamming it too quickly

#

i need to make some sort of cooldown

#

some guy used the music commands a bunch and broke the queue

#

Use JavaScript it’s much simpler

#

welp i dont know javascript

#

guess i could learn

west raptor
#

just use whatever you want to use

earnest phoenix
#

Then your kinda screwed about a free host

#

@west raptor

#

Is there any free python hosts?

west raptor
#

heroku works although its a pain in the ass and you cant use local dbs

earnest phoenix
#

Jeromy is super hard to setup

#

Heroku*

#

Auto correct lol

west raptor
#

all good

#

heroku is a pain i agree

earnest phoenix
#

But if you follow a few tutorials I guess your fine

#

But I don’t believe heroku is 24/7

#

Is it?

west raptor
#

it is afaik besides a few down times

earnest phoenix
#

Ahh ok

#

Well I gtg nice talking

#

Bye

unique dock
#

ok

#

i am a noob and apparently dont know how to code yet...

#

and no one will teach me

#

so do you think that an online course would work?

#

oh i am in development

zenith moss
#

@unique dock what language?

formal agate
unique dock
#

idk what language

formal agate
#

so you don't care

#

then use that link

unique dock
#

that is not what i said but ok

formal agate
#

ik that

topaz fjord
#
  • Pick a coding language
  • Learn a coding language
unique dock
#

bye then

#

be back in a long... long time

topaz fjord
#

ok

formal agate
#

lol

#

anyway idk why but aliases for commands arn't working in discord.js. Ik this is the problem code do everything else logging properly etc, and commands now being able to be used in anyway.

let cmds = client.commands.get(cmd.slice(prefix.length)) || client.commands.get(client.aliases.get(cmd.slice(prefix.length)));

    if (cmds) {
      cmds.run(client, message, args, setting, prefix, loadCommands); //checks if command is real, runs said command if so
    };```
#

no errors anything. if I'm being stupid feel free to yell at me

slim heart
#

What is loadCommands

formal agate
#

A function

#

It is used to load commands

amber root
#

Hey there fams, if anyone is familiar with rythm and when it joins it sends a message instantly, how would i do that for my bot? Its starting to get up there with the servers so im just trying to make it more advanced

idle mountain
#

what language and lib

bright spear
#

FYI sending a message on join is generally considered to be annoying

earnest phoenix
#

Im confused I am trying to make my bot print out images in JS and this is the error I get
0|DameBot | ReferenceError: Invalid left-hand side in assignment
0|DameBot | at Client.bot.on.message (/home/pi/JSBot/index.js:134:36)
0|DameBot | at Client.emit (events.js:187:15)
0|DameBot | at MessageCreateHandler.handle (/home/pi/JSBot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
0|DameBot | at WebSocketPacketManager.handle (/home/pi/JSBot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65)
0|DameBot | at WebSocketConnection.onPacket (/home/pi/JSBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
0|DameBot | at WebSocketConnection.onMessage (/home/pi/JSBot/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17)
0|DameBot | at WebSocket.onMessage (/home/pi/JSBot/node_modules/ws/lib/event-target.js:120:16)
0|DameBot | at WebSocket.emit (events.js:182:13)
0|DameBot | at Receiver._receiver.onmessage (/home/pi/JSBot/node_modules/ws/lib/websocket.js:137:47)
0|DameBot | at Receiver.dataMessage (/home/pi/JSBot/node_modules/ws/lib/receiver.js:409:14)

prime cliff
#

@earnest phoenix its already telling you which file and line that the error is coming from

#

index.js:134:36

#

events.js:187:15

earnest phoenix
#

Thanks

#

I just figured out its because I dont have the images on my pi yet

prime cliff
#

Lol

earnest phoenix
#

I had them on my windows pc

earnest phoenix
misty rune
#

Fix it

earnest phoenix
#

I did

#

It had something in a loop

slate pilot
#

if(msg.author.bot) return;

late hill
#

if (msg) return; awesmart

earnest phoenix
#

how can i cancell(stop) ffmpegs '''ffmpeg.outputstream.base.stream'''

#

cause when i copy from ffmpegs output stream to discord stream i have to await

wispy jay
#

what

earnest phoenix
#

and when a user want to play another somg i have to stop the last one

#

thats the problem

wispy jay
#

what language

earnest phoenix
#

c#

#

any sugfestion would be fine

#

i rhinkim off the track

misty rune
#

CancellationToken then

earnest phoenix
#

im doing something tje wrong wY

#

i cant use cancelation token

#

with copyasync method

#

theres nothing liek that avaliable

wispy jay
earnest phoenix
#

any links?

misty rune
#

Pretty sure you can

wispy jay
#

The fs.promises API is experimental on nodejs, even though i have 10.14.2

#

any idea?

modest shore
#

i just noticed that you dont have to create mute role for an mute command thonk

wispy jay
#

yeah, but it's muting for voice only

modest shore
#

no text muting

wispy jay
#

override each text channel of the user?

#

🙅🏼

modest shore
#

in an extra thread so it does not effect the bot performance

wispy jay
#

but it doesnt look good on channel perms client-side

#

or are you able to delete perm overrides?

modest shore
#

idk i try

manic badger
#

How would I make a snipe command?

wispy jay
#

well first u need to try it out yourself

lament meteor
#

ig u use a cache is the best idea

modest shore
#

@wispy jay yes you can delete perm overrides

wispy jay
#

how @modest shore

modest shore
#

@wispy jay for me in discord.js i just have to loop trough each text channel and get the collection of permissions overrides in the channel then use get(member.id) and delete it

wispy jay
#

oh i see

#

thanks @modest shore

modest shore
#

np

misty rune
#

what permission a bot need in order to add role to a user?

warm marsh
#

Manage user, manage roles

misty rune
#

ManageUser doesn't exist

#

it seems

#

ManageRoles i guess but it is not mentioned in the description of it

warm marsh
#

MANAGE_MEMBERS

misty rune
#

i can't find it using C#

#

but no problem

warm marsh
#

Ah shit

#

.net lib check it

modest shore
#

is it possible to let a bot listen to spotify ?

inner jewel
#

@misty rune manage roles

earnest phoenix
mossy vine
#

my eyes

modern sable
#

@earnest phoenix please dont

#

this channel is for development questions and not epilepsy emotes

lofty hamlet
#

Hi

#

Who can help me ?

#

My error : npm i better-sqlite3

#

My code :

mossy vine
#

uhm thats not an error, thats a terminal command bloblul

lofty hamlet
#

Fail

mossy vine
#

whats the fail

lofty hamlet
#

My error:

#

TypeError: db.set(...).then is not a function

#

My code is the hastebin

misty rune
#

Thx natan

lofty hamlet
#

@mossy vine ? You can help me ? 😃

mossy vine
#

well, obviously .then is not a function

#

The then() method returns a Promise

lofty hamlet
#

So ? 🤔

#

You see my code ?

#

My code is false ?

mossy vine
#

i actually have no idea lmao

#

my best guess is that .then() only works on promises

lofty hamlet
#

🤔

#

Other people who have the anwser can help me ?

cold briar
#

I’m here for the free chipotle?

west raptor
#

what

misty rune
quartz kindle
#

@lofty hamlet there is nothing in the quick.db docs about .set being async

#

so .then will not work

#

you have to use it in sync mode js db.set(key,value); //in sync mode, your code will always wait for the line to complete before going to the next line message.channel.send()

slim heart
#

Yeah you need to do .add which is a promise

quartz kindle
#

nothing in their docs is async from what i can see lol

#

so there is no .then anywhere

slim heart
quartz kindle
#

where are you reading this from?

slim heart
quartz kindle
#

ah, they dont mention it at all in their "official" docs

slim heart
#

Yeah always go for the git docs if they have them 100% of the time if you need docs

quartz kindle
#

yeah but they dont even mention it in their git page

slim heart
#

Ooooh I see wym yeah

quartz kindle
slim heart
#

Yeah I gotchu

#

Ight. Well, yeah there ya go @lofty hamlet

keen drift
#

in my project, I just do gey shit like (async () => action)()

#

if it doesn't support async

slim heart
#

lol that works i guess

fallen oak
#

I'm getting a random unhandled error event that breaks my bot but only when I run it locally?

late hill
#

wot error

fallen oak
keen drift
#

then handle it

modest shore
#

@fallen oak when its happening out of nowehre ( when the client is just running and "idle") . then this worked for me

client.on('error', console.error);
#

yeah i had the same issue

#

with the websocket thing

#

the guys on the djs discord told me that that will fix it

reef oriole
#

discord throws errors sometimes, it's bound to happen with a constant ws connection

modest shore
fallen oak
#

I will try this thanks

modest shore
#

it worked for me so i hope it works for you too

fallen oak
#

Wait should it be process.on?

modest shore
#

i just have it in my main js where i load all commands and events etc

#

ah wait

#

i miss understood

#

its client.on cause its an "event" like the client.on("message",msg=> {}); or client.on("ready", () => {}); "event"

fallen oak
#

Oh I didn't really know where it was coming from, I run 6 bots in one file (ik ik) and theres a process.on event I have for unhandledpromiserejections

#

But this compiles so I'm good and hope this works :P

modest shore
#

yeah just try it

#

it worked for me so i guess it will work for you too

#

wouldn't make anysense if not

earnest phoenix
#

wait whT

#

6 bots???

tight glen
#

Guys

#

guys

earnest phoenix
#

?

tight glen
#

how to hosting VPS

earnest phoenix
#

there are some cheap servers avaliable

#

like 3-5$ a month

tight glen
#

i dont know

#

what the link

earnest phoenix
#

but you get 2 gb ram

#

i do not remember wait

topaz fjord
#

Six bots in one file

#

seems logical

#

fuck

#

discord pls

shell blade
#

How do I get x% of n in JavaScript?

#

I've tried this, but it doesn't work.
((Math.floor(Math.random()*10)+5)*db.users[message.author.id].level+1)/100

topaz fjord
#

what doesn't work with that

inner jewel
#

x% of n is just n * (x/100)

shell blade
#

That didn't work for me...

#

But I got something :p

zealous veldt
#

Anyone know which language makes anything in a codeblock on a line starting with ; blue? (Mention me)

fallen oak
#
; Like this blue?
hidden ginkgo
#

anyone know if any of, if not all of the larger bots with multiple physical servers use a separate server for the database? (it makes sense)

inner jewel
#

the biggest bots are all multiple servers

#

some of the top 10 bots manage to run a single server

hidden ginkgo
#

Yeah, I thought that was the case but for something like a web server that you wanted scalability, you'd host the database separately so you didn't need to mess with syncing all of the servers up

#

which brings me onto another question thinking about it. Are servers(guild) locked to a specific shard? or if the bot restarted, would they all get reassigned?

inner jewel
#

guilds are assigned to shard ids with shard_id = (guild_id >> 22) % shard_count

hidden ginkgo
#

ah I see

#

that would mean that some servers would get shuffled if there was major growth

slim heart
#

They would be shuffled if the shard can’t went up so yeah

#

Late response but whatever

#

So @hidden ginkgo that means no if you restart they’re all stuck to the same thing but when a new shard is added it’s actually pretty rare (in my experience) that they keep the same shard, they’ll almost always change

sick cloud
#

shards shuffle servers sometimes

inner jewel
#

only when shard count changes

hidden ginkgo
#

So a dedicated database server makes sense in preventing things getting lost due to scaling in either direction. Instead of trying to maintain a smaller database for each shard. (since shards only know about guilds related to them)

languid dragon
#

@zealous veldt ```markdown

yeet

earnest phoenix
#

@hidden ginkgo I know that solutions like MongoDB atlas have clusters

#

Where each part of the database is split up in to different shards

raven grove
#

Hey i'm looking for someone to create a discord bot with me, I know how to code and that stuff but i need a manager/co-owner and someone who could give me ideas!

knotty steeple
#

think

#

make a game or something

raven grove
#

game?

#

I dont know how to create games only bots

mossy vine
#

game bots

raven grove
#

oh

mossy vine
#

like mudae

#

or pokecord

raven grove
#

I dont know how to do that either lol

mossy vine
#

but make sure it doesnt involve pokemon lmao

raven grove
#

Only Manging bots

mossy vine
#

but... you said you know how to code..

#

then.. you should have the necessary skills to create something like that

raven grove
#

Yea but not game codes dah

quartz kindle
#

coding is coding regardless of what kind

#

a good coder will figure out a way to code anything

lament meteor
#

^

#

i agree discord bots also is not something that is difficult

zealous veldt
#

Imagine being a good coder fuck

queen fog
#

Could someone help me with the warn code on discord.js

#
 if (command === "warn") {
    if (message.author.hasPermission("PERMISSION_YOU_WANT")) {
        return message.channel.send("You can't use this.")
    };
    
    let member = message.mentions.members.first();
    let reason = args.slice(1).join(" ");
    
    if (!member) {
        return message.channel.send("Mention a member to warn.");
    };
    
    if (!reason) {
        return message.channel.send("Please provide a reason to warn " + member);
    };
    
    if (member.id === message.author.id) {
        return message.channel.send("You can't warn yourself.");
    };

    if (member.id === client.id) {
        return message.channel.send("You can't warn me.");
    };
    
    member.send(reason);
};```
#

It says Parsing Error: Unexpected Token "}"

#

Someone, help?

mossy vine
#

on what line?

queen fog
#

The last one

#

};

mossy vine
#

lmao what

queen fog
#

Yup

amber fractal
#

You ended unexpectedly

#

You ended the if not the export.run

#

exports.run*

#

Add another } to the end

#

Should be right

#

@queen fog

topaz fjord
#

It's clearly there

#

You didn't close the exports.run curly brace

slim heart
#

It literally says the line number in the error too..

manic badger
#

be happy

west raptor
#

dont spoonfeed

manic badger
#

oof

#

I can do what I want

west raptor
#

the rules say otherwise

#
7.
      a. Don’t spoon-feed or attack beginners.
           Everyone starts somewhere and asking questions is smart. Do not attack people for not knowing how to code. Point them to great learning sources and help them with problems.
           However, you shouldn’t just give them finished code because then they only learn to copy more.```
manic badger
#

oh

#

oopsie

amber fractal
#

Wait were you talking to me?

west raptor
#

no

ripe star
#

hello! just joined and looking to start coding a bot, any tips/pointers/guides? much appreciated

west raptor
#

Do you know what language you want to work with?

#

@ripe star ?

ripe star
#

python preferably

#

i did a google search and told me to use node.js

#

@west raptor

amber fractal
#

It's mainly preference

lament meteor
#

you should learn a coding language then code a discord bot

ripe star
#

i mean, I do sorta know the basics of python

amber fractal
#

I don't know many major advantages of using one languages over another

west raptor
#

I don't really know a good d.py tutorial

amber fractal
#

Read the docs

west raptor
#

^

amber fractal
#

Better than every tutorial

lament meteor
#

i agree

amber fractal
west raptor
#

I'm getting in dart/nyxx and reading the docs helps a lot

amber fractal
#

You get context when reading docs

#

you actually know what your code is doing

west raptor
#

^

#

this

amber fractal
#

Theres few tutorials that do well at explaining, its mainly copying

ripe star
#

okey i'll have a look thanks everyone

amber fractal
#

Good luck :+1:

#

Actually that's kinda downing

#

Have fun :+1:*

ripe star
#

haha i'll try 😃

#

wierd question but: how do you decide names for your bots?

west raptor
#

i dont even know sometimes

#

sometimes i just pick something random

#

like my latest one is Dawn

knotty steeple
#

my bot names relate to what it does

#

like one of my bots @woeful saffron is just for coffee and stuff

#

@ripe star

keen drift
#

you would never guess what my bot @coarse carbon does

ripe star
#

okey thanks for the tips

shadow barn
#

i use your bot @keen drift lol

knotty steeple
#

i cant @keen drift what does it do?

amber fractal
#

You wouldn't guess what my @pale walrus bot does either

#

Generic names best names

idle mountain
#

@earnest phoenix - currency is coins, "master" just sounded best at the end of the name (also worked well because it's what you could call the #1 top user globally)

sullen path
#

@clear patrol - you figure it out

idle mountain
#

i love seeing all the people here going "it's obvious by the name" and yet i literally cannot tell at all what they do from the name

#

just sayin, a name being relevant to what it does doesn't mean the name explains it

sick cloud
#

my bot is easy

#

@dusty bronze

bright spear
#

@fast onyx

amber fractal
#

Mobile Friendly: Makes it easier to do things on mobile

hidden ginkgo
#

My bot She is one day going to become sentient and be my waifu

empty owl
#

Hey is there some way to change js $(document).ready(function(){ setTimeout(function () { $("#cookieConsent").fadeIn(200); }, 4000); $("#closeCookieConsent, .cookieConsentOK").click(function() { $("#cookieConsent").fadeOut(200); }); }); to reg javascript

shut sparrow
#

There's always a way not to use jQuery

empty owl
#

ik

#

but some way to change it to reg

shut sparrow
#

You asked if there's a way, not how 😏
Too tired right now to type it on my phone

empty owl
#

o

topaz fjord
true solstice
#

how do we get the number of servers our bot is in to show up on the discordbots website rather than n/a

#

i've tried to post server count by just copying the docs but i feel like i did something wrong

amber fractal
#

What language @true solstice

true solstice
amber fractal
#

OHHH

#

I thought you meant youe bot

#

not the website

#

I dont know how to do that srry

true solstice
#

o LOL all good

ruby dust
#

Login to the correct account

#

Still login to the correct account

#

Make sure that you are by trying to log into via the same browser you are trying to add the bot

earnest phoenix
#

is that even a command?

#

For my bot lol

#

@earnest phoenix

visual zenith
#

how come it just restart the bot without saying any errors
everytime I go !suggest whatever in the chat
and it only reacted the 🚫 not with the ✅
and it restarted the bot right after the bot reacted 🚫

keen drift
#

check for errors Thonkang

#

or just use :white_check_mark:

visual zenith
#

there was no error

#

it restarted the bot without giving me any errors

#

and no that doesnt work

shy rose
#

\✅

#

use that rather your tick

visual zenith
#

tick?

#

shy rose
#

copy that emoji

visual zenith
#

i did

#

and its in the code already

#

-__

shy rose
#

it looks diffrent...

visual zenith
#

because of the white theme xD

shy rose
#

also why not put a .then on and see whats in the cb

visual zenith
#

.then?

waxen quest
#

Msg.react(...).then(m => m.react(...))
Or something like that

shy rose
#

msg.react(aNoU ).then(reply=>console.log(reply))

visual zenith
waxen quest
keen drift
#

then and catch

visual zenith
#

Thonkang i'll try

waxen quest
#

Nice pepe_Smile pepe_Animated_Clapping

visual zenith
#

but it failed

#

it restarted the bot

waxen quest
visual zenith
#

but left a LONG text of something

waxen quest
#

Can you screenshot it?

visual zenith
#

cant too big

waxen quest
#

Ah

visual zenith
#

sending hastebin

waxen quest
#

Youre hosting on glitch, right?

visual zenith
#

yes

waxen quest
#

Hell yeah pepe_EZ

#

Gonna check it out

visual zenith
#

after that code

#

the bot restarted itself

waxen quest
#

Yeah no idea pepo

visual zenith
waxen quest
#

It prob wont wotk but try to remove the await in the msg var

visual zenith
#

msg.react is not a function 😭

waxen quest
#

I may know something

visual zenith
#

well then say it

waxen quest
#

const msg = await client.channels.get(id).send(embed).then(m => m.react(...)).then(m => m.react(...))

visual zenith
#

oh geez

waxen quest
#

I have to write it pepe_FeelsBadMan

shy rose
#

you can bundle both reacts in the first .then

visual zenith
#

how

waxen quest
shy rose
#

i mean they only need to make sure the message has sent

#

the second react doesnt need the first react

waxen quest
#

Oh yeah

visual zenith
#

\🚫

#

wut

#

\✅

shy rose
waxen quest
visual zenith
#

it only reacted to the 🚫

waxen quest
#

And no restart?

shy rose
#

try switch the order?

#

maybe its race ¯_(ツ)_/¯

visual zenith
#

and yes restart lmao

waxen quest
#

Anyways I gtg, cya peepo_Love

shy rose
#

always reboot your code lol

visual zenith
#

switcharoo xD

#

same thing

#

it reacted to the check mark

#

but not the no sign

#

then restart

shy rose
#

so only the first one is reacting not the second?

visual zenith
#

yep

shy rose
#

whats the rate limits on react ThinkDerp

#

ik they are low but like... how low

spring ember
#

Umm not so low

#

Most libs do that for you

visual zenith
#

;/

#

so then now what? @shy rose

shy rose
#

setTimeouts

visual zenith
#

and how to do that lmao

shy rose
#

msg.send().then((thing)=>{thing.react(aPartyBlob ); setTimeout(()=>{thing.react(BlobSaber ),500})})

#

@visual zenith ncs is good 😄 listening to em now as well

visual zenith
#

xD

#

bruh

#

only the check mark reacted it

#

and skipped the no sign

#

let me gix something

#

fix*

#

im so confused reee

earnest phoenix
#

Hey anyone know how to change token with eval command

lament meteor
#

u can't

earnest phoenix
#

İ am co-leader of a bot and i need to change

#

Uh

solar isle
#

Try this bot.login("TOKEN")

earnest phoenix
#

Nopr

#

İts login command

#

İt will not change bots token

#

İt will try to login with specified token

solar isle
#

You want to regenerate bot toketn?

earnest phoenix
#

Yes

blazing pasture
earnest phoenix
#

Noo acc is not mine

solar isle
#

Unfortunly only bot owner can do it

blazing pasture
#

^

earnest phoenix
#

Ooff

solar isle
#

How I can detect that content on web page was updated?

queen fog
#
  if (!command) return message.reply("Must provide a command name to reload.");
  let run = false;
  try {
    delete require.cache[require.resolve(`../commands/${command}.js`)];
    run = true;
  } catch(e) {
    try {
      delete require.cache[require.resolve(`./${command}.js`)];
      run = true;
    } catch(e) {}
  }
  if (run) {
    message.channel.send(`The command \`${command}\` has been reloaded`);
  } else {
    message.channel.send(`Could not find command \`${command}\``);
  }
};```
#

That is my reload code

#

It worked before but now it isn't

#

What should i do?

lament meteor
#

whats the error

raven grove
#

Who would like to create a bot with me?

sick cloud
#

@raven grove not the channel for it really, but you gotta provide more information mate

#

waits for "multipurpose"

raven grove
#

wELL

#

How about you show me the right channel?

sick cloud