#development

1 messages · Page 1406 of 1

slender thistle
#

And since len() calls that method, you get length of client.guilds by using len(client.guilds)

#

Now who else pinged me while I was busy winning imaginary arguments in shower

weary torrent
#

type=discord.ActivityType.watching)
await client.change_presence(activity=activity)
loop_function.start()

#

is dat it??

slender thistle
#

what

#

are you even trying to do

wise quartz
#

@slender thistle would u like to be introduced to the most complicated easily fixable vision wise error you've ever maybe almost seen?

weary torrent
#

make my bot say how manu guilds its in and switch to 》Playing Prefix -《

slender thistle
#

Surprise me

weary torrent
#

Many*&"

wise quartz
#

alr sec

weary torrent
#

Then keep going

slender thistle
#

So you want to switch between two statuses of different types

weary torrent
#

from discord.ext import tasks # Function automatically called every 5 minutes @tasks.loop(minutes=5) async def loop_function(): # Set the activity as "Watching" + the amount of guilds, and users the bot is watching over. activity = discord.Activity(name=f"over {len(bot.guilds)} guilds\nand {len(bot.users)} users!", type=discord.ActivityType.watching) await bot.change_presence(activity=activity) # Start the loop loop_function.start()

#

Like dat

pale vessel
#

Codeblocks 😩

slender thistle
#

Man

#

Reading that is making me feel illiterate

#
from discord.ext import tasks
# Function automatically called every 5 minutes
@tasks.loop(minutes=5)
async def loop_function():
    # Set the activity as "Watching" + the amount of guilds, and users the bot is watching over.
    activity = discord.Activity(name=f"over {len(bot.guilds)} guilds\nand {len(bot.users)} users!", type=discord.ActivityType.watching)
    await bot.change_presence(activity=activity)
# Start the loop
loop_function.start()
#

Oh hey

#

this is right

weary torrent
#

so... how do I use it

slender thistle
#

use what

#

loop_function?

south sinew
#

Do people not know docs, stack overflow, and Google exist

weary torrent
#

Here if any 1 wants if its correct and if u need it

import os for filename in os.listdir("./cogs"): if filename.endswith(".py"): bot.load_extension(f"cogs.{filename[:-3]}") print(f"Loaded {filename}")

#

loop_function?
@slender thistle yes

slender thistle
#

What do you use for copying these

weary torrent
#

Copying what??

#

The code

slender thistle
#
import os
for filename in os.listdir("./cogs"):
    if filename.endswith(".py"):
        bot.load_extension(f"cogs.{filename[:-3]}")
        print(f"Loaded {filename}")
#

yes

weary torrent
#

That stuff

#

Ill send a link kk

wise quartz
weary torrent
#

heree

wise quartz
#
Command raised an exception: NameError: name 'cashIcon' is not defined
old cliff
#

advantage of webhooks over messages ?

wise quartz
#

@slender thistle whats wrong there?

#

its a capital I in my db

weary torrent
#

Any 1 have any embed code for discord.py??

That i can use xdd

solemn latch
#

we dont spoonfeed code

slender thistle
#

What's cashIcon

#

is it defined

wise quartz
wise quartz
#

i sent 3 imgs

#

did u see them>

#

?

slender thistle
#

well no, I don't see a proper scope understanding

#

just because you defined it in getCash doesn't mean it will exist in the command where you use it

weary torrent
#

@bot.event # on_message takes a message argument async def on_message(message): # Prevent endless loop if message.author.id == bot.user.id: return # If the message is not in a guild if not message.guild: # Define the log channel with guild ID and channel ID logchannel = bot.get_guild(GUILDIDGOESHERE).get_channel(CHANNELIDGOESHERE) # Send a message as embed in that log channel embed = discord.Embed(title="Modmail", colour=0x000, description=f"**From:** {message.author.mention}\n\n*{message.content}*", timestamp=datetime.utcnow()) embed.set_footer(text=message.author, icon_url=message.author.avatar_url) await logchannel.send(embed=embed) # Process commands await bot.process_commands

slender thistle
#

unless you actually return it

pale vessel
#

oh god

slender thistle
#

Jesus fuck I'm not converting that

#

What's wrong with your phone

wise quartz
#

so i'd have to return oh..

#

makes sense

south sinew
#

Holy shit

wise quartz
#

why didn't it say cashName isn't defined then?

#

its the first if

slender thistle
#

Because it errored out on cashIcon, which came first

old cliff
#

advantage of webhooks over messages ?

slender thistle
#

and the interpreter gave up after that

pale vessel
#
@bot.event
# on_message takes a message argument
async def on_message(message):
    # Prevent endless loop
    if message.author.id == bot.user.id:
        return
    # If the message is not in a guild
    if not message.guild:
        # Define the log channel with guild ID and channel ID
        logchannel = bot.get_guild(GUILDIDGOESHERE).get_channel(CHANNELIDGOESHERE)
        # Send a message as embed in that log channel
        embed = discord.Embed(title="Modmail", colour=0x000, description=f"**From:** {message.author.mention}\n\n*{message.content}*", timestamp=datetime.utcnow())
        embed.set_footer(text=message.author, icon_url=message.author.avatar_url)
        await logchannel.send(embed=embed)
        # Process commands 
        await bot.process_commands```
#

idk

weary torrent
#

Any 1 here have any
discord.py
embed code
I can use plss xdd

south sinew
weary torrent
#

what docs??

slender thistle
#

thanks flaze

#

you're a godsend

weary torrent
#

srry im new to dis xddd

south sinew
#

Look up discord py docs

#

😐

slender thistle
#

Stop asking people to send you ready-to-use code

#

Apply common sense and rtfd

wise quartz
#

well his situation is

#

he found out that he could code on mobile/

south sinew
#

You will never learn by copy pasting

wise quartz
#

searched how to make discord bot 101

#

then found that guy called Lucas

slender thistle
#

Can we delete Lucas' channel

wise quartz
#

whated his 3 years old outdated series

#

or whatever else

#

then watched some other serieses

#

now hes copy pasting codes

#

trying to make a bot

slender thistle
#

I don't see people refer to him often here but holy Jesus does it become a clusterfuck when they do

wise quartz
#

which he hasn't even imported discord yet

south sinew
#

Bruh

wise quartz
#

😆

south sinew
#

Smh

wise quartz
#

@weary torrent do you have a line in ur code where it says

import discord
from discord.exe import commands

?

slender thistle
#

Time to write a time measurement converter

#

This is gonna be "fun"

wise quartz
#

YeAh...

#

somehow

wise quartz
slender thistle
#

True

#

I mean, it's experience that I might need later, but...

wise quartz
#

what library have u developed?

slender thistle
#

dblpy

wise quartz
#

i've heard of it

#

what is it for?

slender thistle
#

Just a top.gg API wrapper for Python

wise quartz
#

yeah i've used that to make my bot show how many guilds its in

#

right isn't that what u use it for?

weary torrent
#

@weary torrent do you have a line in ur code where it says

import discord
from discord.exe import commands

?
@wise quartz Yess

wise quartz
slender thistle
#

Mainly, yeah. It contains all publicly known features that top.gg has implemented

weary torrent
#

wha

#

oh ye

slender thistle
weary torrent
#

the import discord

#

idk

earnest phoenix
#

Hey

#

I made a bot

wise quartz
wise quartz
earnest phoenix
#

Moderation

#

I have a problem

#

I don't know how to turn on the bot

#

But I code it

wise quartz
#

host it

hollow sedge
#

How did you make it without even testing it?

south sinew
#

😐

earnest phoenix
#

Idk

wise quartz
#

i was bout to ask that

wise quartz
south sinew
#

What library

earnest phoenix
wise quartz
#

all except token

earnest phoenix
#

I made it with visual studio code

wise quartz
#

if u even have one

earnest phoenix
#

i have

wise quartz
#

yas

south sinew
#

Vs code is an ide not a library

wise quartz
south sinew
#

Brrrr

wise quartz
#

i mean who needs testing

earnest phoenix
#

const BaseCommand = require('../../utils/structures/BaseCommand');
const Discord = require('discord.js');
module.exports = class KickCommand extends BaseCommand {
constructor() {
super('Kick', 'Moderation', []);
}

async run(client, message, args) {
if (!message.member.hasPermissions("KICK_MEMBER")) return.channel.send("Nu poti folosi aceasta comanda.")
const mentionedMember = message.mentions.members.first();
let reason = args.slice(1).join(" ");
if (!reason) = "Niciun motiv dat";
const kickEmbed = new Discord.MessageEmbed()
.setTitle(Ai fost dat afara din ${message.guild.name})
.setDescription(Motiv: ${reason})
.setColor("#5708ab")
.setTimestamp()
.setFooter(client.user.tag, client.user.displayAvatarURL());

// !kick @user dm ads
if (!args[0]) return message.channel.send("Trebuie sa alegi pe cine vrei sa dai afara. `!kick @user motiv`");
if (!mentionedMember) return message.channel.send("Utilizatorul mentionat nu exista pe server.");
try {
await mentionedMember.send(kickEmbed);
} catch (err) {
console.log(Nu am putut trimite mesaj utilizatorul.);
}

try {
await mentionedMember.kick(reason)
} catch (err) {
console.log(err);
return message.channel.send("Nu am putut exclude utilizatorul mentionat.")
}

south sinew
#

Ah discord js

queen needle
#

10/10 code blocks

south sinew
#

Very epic

wise quartz
#

i bet 100000000Jeff bitchinzoz dollars he copy pasted it from somewhere

earnest phoenix
#

I am 13yrs

south sinew
#

@earnest phoenix what does your main file (index.js or app.js) look like

earnest phoenix
#

Wtf

wise quartz
queen needle
#

what does it look like

wise quartz
#

what libraries did u use?

#

how old ois ur mom

#

gimme ur sisters number

south sinew
#

He used discord js unicode

wise quartz
#

ha?

#

ye ik

earnest phoenix
#

Can I dm someone to repair my bot

#

Pls

wise quartz
#

you mean test it?

south sinew
#

Someone isn't going to just

#

Make a bot for you

earnest phoenix
#

I want to learn

south sinew
#

Ok so, you only have 1 file for your bot, it being that code?

wise quartz
#

pay me 50$ i'll make you a fully functional multi-purpose bot in an hour@earnest phoenix

#

lmao

#

i'll even host it

#

for extra 20

#

deal?

south sinew
#

Bruh

wise quartz
#

i am getting banned

#

lmao

#

jk

earnest phoenix
#

Can you learn me some codes

#

?

#

I am 13

wise quartz
#

learn you some codes?

earnest phoenix
#

I want to learn

#

How old are you?

south sinew
#

Then go look up how to use js before copy pasting code that uses module exports, which means you need a command handler for that to work

tribal siren
#

sometimes it's tricky

earnest phoenix
#

can you modify the scroll bar in overflow CSS property?

tribal siren
#

to understand what ur saying

south sinew
#

^^

earnest phoenix
#

```<code language>
code
```

wise quartz
tribal siren
#

agree

earnest phoenix
#

example: js
```js
console.log("hi");
```
this becomes:

console.log("hi");
#

learn markdown bois

earnest phoenix
south sinew
#

@earnest phoenix so the code there uses module exports, which to bluntly simplify allows you to split your code into numerous files

wise quartz
#
print("hi")
tribal siren
#

yes

wise quartz
#

python is easier

earnest phoenix
#

python is hell
so is every other programming language on earth

wise quartz
south sinew
#

So you need to get the bot at least online first, look at the docs for discord js on how to do that

south sinew
#

Python cringe

tribal siren
#

lmao yes

wise quartz
#

HEYHEYHEY dont do me like that ya'll js me only python

#

wheres ma damn peoplke

earnest phoenix
#

python is hell
js is hell
everything is hell

HAIL BRAINFUCK

wise quartz
#

hell is hell

#

unicode 2020

slender thistle
#

took me 20 minutes to write a script that outputs "Hi"

#

Brainfuck is fun

south sinew
#

Nice

wise quartz
#

we doin something better here

earnest phoenix
south sinew
#

Me bouta spend 4 hours making a hello world using assembly

wise quartz
#

dude python is like the king of all languages

slender thistle
#

KEKW code

junior wharf
#

@earnest phoenix wdym

wise quartz
#

learn him some code guys

rustic nova
earnest phoenix
junior wharf
rustic nova
#

give me a minute

junior wharf
#

use Absolute Brainfuck and be happy

#

its an actual language

south sinew
#

Me bouta make a discord bot in basic 😎

rustic nova
#

though I'm not really sure what effect this has on other browsers, it seems to work on firefox (in sense of disabling the scroll bar and still being able to scroll

Not spoonfeeding, this took me hours to figure out

html {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */

}

html::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
#

@earnest phoenix this disables the scrollbar, but you are still able to scroll

earnest phoenix
#

how can i make a vote command for top.gg?

rustic nova
#

if that's what you're referring to

junior wharf
#

well ok...

south sinew
#

@earnest phoenix what library

junior wharf
#

reaction

#

s

earnest phoenix
#

@rustic nova kthnxbai

#

i love this emote

south sinew
#

Ok, so do you just want a command that returns a link or that checks if a user voted

rustic nova
earnest phoenix
earnest phoenix
junior wharf
#

send an image, react to it with 2 reactions and get the reactions after 10 or so minutes

earnest phoenix
earnest phoenix
#

no one help me

#

😦

junior wharf
#

@earnest phoenix what do u wanna learn

earnest phoenix
junior wharf
#

f ing or some

rustic nova
#

because you're asking something that should be known already when here, try heading over to #502193464054644737 and reading "how to make a bot"

earnest phoenix
#

ok

south sinew
earnest phoenix
junior wharf
#

why not

earnest phoenix
#

How can i set a webhook when someone vote in website, it alert me?

earnest phoenix
south sinew
junior wharf
earnest phoenix
#

no not that

south sinew
#

0auth go brrrrr

earnest phoenix
#

the guy who replies to this is gay

south sinew
#

Epic

rustic nova
#

definitely not allowed lmao

junior wharf
south sinew
#

Yeah prob against both discord and topgg tos

ivory seal
#

in my embed field i want to keep a value with a formatting but because i use
` to start my embed field im not able to get that format can someone help?

earnest phoenix
#

@junior wharf u gay

ivory seal
#

```.addField(**Top 10 Richest Users in Jet's Dream World**, 1) ${winner1} - ${winner1msg}`

south sinew
#

@ivory seal use a \

earnest phoenix
#

oh you want to insert a ` character inside a template string amirite?

south sinew
#

Backslashes are basically like "treat the next character as a character"

earnest phoenix
#

also use map

south sinew
#

So you would do `text`

#

Ha discord go brrrr

wise quartz
#

now i know why they so smart

earnest phoenix
slender thistle
#
            if character == ' ':
                new_text += ' '
                continue
#

Now, what the fuck was I smoking?

south sinew
#

Lol

slender thistle
#

Specifically,

        for character in text:
            if character == ' ':
                new_text += ' '
                continue
            i = random.randint(0, 1)
            if i:
                new_text += character.upper()
            else:
                new_text += character.lower()
south sinew
#

Its like the if statements I used to write

slender thistle
#

What, if True:? KEKW

south sinew
#

I did that once lol

earnest phoenix
slender thistle
#

kekw

south sinew
#

If(1 == 1)

#

Lmao

slender thistle
#

lmfao

south sinew
#

I still have that code somewhere

earnest phoenix
#

any example ?

#

uhh 0.0.0.0 is not supposed to be a real IP

#

it basically means literally any IP

#

(you might have seen it before on mongodb atlas's security stuff)

#

i wanna post on every vote

#

that webhook is not workin'

south sinew
#
dbl.webhook.on('vote', vote => { 
      console.log(`User with ID ${vote.user} just voted!`); 
});
pale vessel
#

They have that in their code 😩

earnest phoenix
#

am now normal gapple

south sinew
#

Isn't that what you want?

earnest phoenix
south sinew
#

Are you logging into the dbl api with your bots token

earnest phoenix
#

@earnest phoenix also please for god's sake NEVER REVEAL YOUR IP IN A SCREENSHOT

south sinew
#
const DBL = require("dblapi.js"); 
const dbl = new DBL('Your top.gg token', client);
earnest phoenix
#

rule 0 of programming

#

i did this

#

is it correct?

south sinew
#

Is yourDBLTokenHere defined

earnest phoenix
south sinew
#

Ok

#

Well, your code should work then

#

Open the edit menu for your bot, at the bottom it allows you to do a test vote

#

Click that button while your bot is running

earnest phoenix
#

#

OWO

south sinew
#

Does it work?

earnest phoenix
south sinew
#

Well, that'll do it

plucky dove
#

bot dev

earnest phoenix
#

why?

plucky dove
#

uh

#

idk

south sinew
#

Read the docs

plucky dove
#

ask mods

south sinew
#

Tbh I've only done that once, and I removed it soon after so I don't 100% remember everything

#

But ye, read the docs

rustic nova
#

@earnest phoenix this is not how webhooks work

#

read what it says

weary torrent
#

Anyone here have any.
8ball commands but embed??
for a discord bot??

discord.py??

earnest phoenix
#

mmm, i read docs, im confused, i'll glad someone post a full example code for webhooks(voting, setup webhooks)

slender thistle
#

No one will give you any ready-to-use code @weary torrent

south sinew
#

Its the lazy way out

ivory seal
south sinew
#

Learn how to make code so you don't have to ask

ivory seal
#

make code?

#

lol

slender thistle
#

You're not willing to learn to make things yourself, are you? An 8ball command is literally just choosing between multiple responses.

ivory seal
#

true

#

just take a array chose a random value in that array and thats 8ball

#

atleast thats how i do it

south sinew
#

Yep, an array then grab a random index

#

Ez

#

God I hate mobile autocorrect

weary torrent
#

IM LOOKING FOR 8BALL CLMMAND BUT WITH HENTAI AND ITS EMBED xdd
Nit just an 8ball command no xdd their easyy aff

earnest phoenix
#

i meant this:

`this is a template string's normal text. This is a backtick inside a template string --> \`.`;
earnest phoenix
south sinew
#

@weary torrent look at the docs for how to make an embed, I've said this 5 times

ivory seal
#

still gives errors

south sinew
#

I even sent a link

slender thistle
#

what are you smoking there?

south sinew
#

Everything

earnest phoenix
ivory seal
#

im just trying few things give me a sec

#

.addField(`**Top 10 Richest Users in Jet's Dream World**`, `\`.``)
if i just do this for testing , makes the next three lines as a string

earnest phoenix
#

was it fs.createWriteStream or fs.makeWriteStream?

cinder patio
#

Because you escape one of the ` \

ivory seal
#

wdym

earnest phoenix
#

this guy understood nothing i sent

cinder patio
#
` Text \` ``

One of the ` is escaped so it becomes part of the string, you are left with 1 ` that does not get closed

earnest phoenix
cinder patio
#

What are those called anyway

earnest phoenix
#

backtick

cinder patio
#

backticks?

earnest phoenix
#

` is called a backtick

ivory seal
#

ok i got it

#

.addField(`**Top 10 Richest Users in Jet's Dream World**`, `\`${winner1}\``)

#

i did somethikng like this

earnest phoenix
#

the winner1 will now be in a code block

#

congrats

#

you just learnt escaping characters

ivory seal
#

ty

earnest phoenix
ivory seal
#

i learn tons of new things from this server lol

earnest phoenix
#

BRO I JUST REALIZE THERE IS NO <html> TAG IN MY WEBPAGE
HOW DOES ONE FORGET SMTH LIKE THAT

earnest phoenix
#

i remake m bot and now work

#

🏆

earnest phoenix
#

yo I need help with making a website for my bot dm me im willing to give credits and pay

amber thistle
#

anyyonnnnee?????????

pale vessel
#

Did the event even trigger

earnest phoenix
#

i test and is working

#

yey

#

🥳

rustic nova
#

good job

earnest phoenix
#

i made a reply comand for the creator

rustic nova
earnest phoenix
#

can i invite on this server

#

?

rustic nova
#

nope

ivory seal
#
         
dateObj = new Date(time3 * 1000); 
hours = dateObj.getUTCHours(); 
 
// Get minutes part from the timestamp 
minutes = dateObj.getUTCMinutes(); 
 
// Get seconds part from the timestamp 
seconds = dateObj.getUTCSeconds(); 
 
formattedTime = hours.toString().padStart(2, '0') + ':' +  
                minutes.toString().padStart(2, '0') + ':' +  
                seconds.toString().padStart(2, '0'); 
console.log(formattedTime)
``` time2  and time 1 are unixtimestamps which are recorded when a user joins/leaves a vc but when i stay in vc for like 10 secs it conosles something like `21 : 29: 08`
#

i haven't been in a vc for 21 hrs lol

tulip ledge
#

new Date(time3 * 1000); unix timestamps are already milliseconds

#

no need to do * 1000

#

that could be the issue

#

@ivory seal

ivory seal
#

ah ok

#

give me a sec

#

Date.Now() returns a unix timestamp right

rustic nova
#

yes

ivory seal
#

ah kk

#

ye it still returns like 8 hrs

restive furnace
#

just use new Date()

ivory seal
#

ye but wait

torpid tiger
#

offline count has a latter lmao

stoic girder
#

applicationsDB.deleteOne({ _id: application._id }); - Node.js, Mongoose.

Why this just doesn't work? There are clearly applications with the defined ID in the database and the applicationsDB is the valid schema.

#

I tried deleting in mongo shell with the same method, didn't work.

#

However, in shell, deleteOne({ _id: 'ObjectId("some id")' }); worked.

#

What is that ObjectId thing even?

lusty quest
#

someone here experienced with ML.net?

#

@stoic girder the id is a unique ID generated by MongoDB when you insert data into the DB. if you want to have a predicted way to get stuff make your own ID (i like using Guild IDs or UserIDs) that you can easy get

stoic girder
#

I know the ID in my function, I just want to delete the record by it

lusty quest
#

did you tryed findoneanddelete?

stoic girder
#

nah

#

not working

lusty quest
#

are you sure that your application._id is valid?

#

also did you run it async?

stoic girder
#

you think this would be the problem?

lusty quest
#

it can

#

its possible that your application._id is undefined bcs the code is still processing it

stoic girder
#

my freakin filezilla is broken

#

i've been saving the file for past 5 minutes

#

and it didnt upload it to my server

lusty quest
#

ahh yes the classic

#

had the same issue

rustic nova
#

small tip: use winscp wink

lusty quest
#

where scratching my head why tf the code run the same stuff over and over even tho i updated the code

stoic girder
lusty quest
#

write your own

stoic girder
#

lol

rustic nova
#

has darkmode

stoic girder
#

wai what

lusty quest
#

it uses windows Default colors

stoic girder
#

layout tho

#

hmhm

stoic girder
lusty quest
#

well its not a forced thing

rustic nova
lusty quest
#

if you set all windows app to dark mode 3rd party apps that support it also work

stoic girder
#

ah devs just dont wanna support it

#

i checked forums already

#

applicationsDB.deleteOne({ _id: ObjectID(application._id) })

#

doesnt work even like this

#

my brain died

earnest phoenix
#

error in heroku

broken sentinel
lusty quest
#

@stoic girder does application._id alone work?

stoic girder
#

yeah

#

console.log of delete function has this _conditions: { _id: 5fbe25679e7da80abc657889 }

lusty quest
#

also did you make sure that application._id is valid?

#

findOneAndDelete({ _id: application._id }) does this work?

stoic girder
#

{ "_id" : ObjectId("5fbe25679e7da80abc657889"), "status" : 0, "user" : "616713407537610819", "guild" : "740784052696776767", "answers" : [ ], "date" : ISODate("2020-11-25T09:35:35.486Z"), "__v" : 0 }

#

here's the application object from mongo shell

#

it has that weird object id thingy

lusty quest
#

yea

stoic girder
#

i mean i could make my own autoincrement id field

#

but its not really needed

boreal furnace
#

{ "_id" : ObjectId("5fbe25679e7da80abc657889"), "status" : 0, "user" : "616713407537610819", "guild" : "740784052696776767", "answers" : [ ], "date" : ISODate("2020-11-25T09:35:35.486Z"), "__v" : 0 }

lusty quest
#

strange it should work tho

#

did some research and found a stackoverflow page that does exactly the same

#

is applicationsDB your model?

stoic girder
#
var mongoose = require('mongoose');
var id = mongoose.Types.ObjectId('4edd40c86762e0fb12000003');
#

maybe try this

stoic girder
lusty quest
#

it should work. if you look into the answer on the Stackoverflow

stoic girder
#

application._id

#

im passing that

#

what type is it tho

#

lets see that

lusty quest
#

has to be a string

stoic girder
#

typeof says object

lusty quest
#

@earnest phoenix would recommend reading the rules again

#

@stoic girder what exactly did you get if your console.log(application._id)?

stoic girder
#

5fbe27f7302b57594a5ac66a

lusty quest
#

as a string?

stoic girder
#

but typeof says object

lusty quest
#

also it is inside of brackets?

stoic girder
#

nope

#

console.log(application._id); - 5fbe2825b9bbd75db9f16868

#

i tried JSON.stringify and findOneAndDelete but didnt work

lusty quest
#

strange

stoic girder
#

so freakin weird

lusty quest
#

try findByIdAndRemove maybe it helps

#
findByIdAndRemove(application._id)
``` it should find it even when its a object
stoic girder
#

applicationsDB.deleteOne({ _id: mongoose.Types.ObjectId(JSON.stringify(application._id)) });

lusty quest
#

wtf?

stoic girder
#

tried this thing

#

idk what it is even

#

but doesnt work

#

lol

#

applicationsDB.findByIdAndRemove(application._id);

#

nope

#

what am i doing wrong

lusty quest
#

are you sure its the correct model?

stoic girder
#

im using the same model to insert and update the applications without problems

#

in same command

#

but if application process is cancelled i wanna delete the application row

#

ok got it

lusty quest
#

there is probably a super easy fix for it am not aware of

#

ok

stoic girder
#

i just copied this from docs

#
                    applicationsDB.findByIdAndRemove(application._id, function (err, docs) {
                        if (err){
                            console.log(err)
                        }
                        else{
                            console.log("Removed User : ", docs);
                        }
                    });
#

and it worked

#

but without the callback

#

it didnt

#

w h a t

lusty quest
#

ok?

#

strange, never had this issue but ok

stoic girder
#

maybe my damn ftp betraying me again

slate pecan
stoic girder
#

i have no clue

#

but thanks a lot for help @lusty quest

lusty quest
#

or be like me and upload into your Production bot while restarting the Development instance all the time

#

np

stoic girder
#

applicationsDB.findByIdAndRemove(application._id); - doesn't work
applicationsDB.findByIdAndRemove(application._id, function(err, app) {}); - works

#

no errors for first one

#

i guess it requires that argument but doesnt throw an error when you dont supply it

tribal siren
#
    const member = message.mentions.members.first() || message.member;
    const user = await Levels.fetch(member.id, message.guild.id);
    const neededXp = Levels.xpFor(parseInt(user.level) + 1);
    if(!user) return message.channel.send("You don't have any messages in this server. Try sending some messages first, then try again!");
    const rank = new canvacord.Rank()
      .setAvatar(message.author.displayAvatarURL({ dynamic: false, format: 'png' }))
      .setCurrentXP(member.xp)
      .setRequiredXP(neededXp)
      .setStatus(member.user.presence.status)
      .setProgressBar('#216096', 'COLOR')
      .setUsername(member.user.username)
      .setDiscriminator(member.user.discriminator)
    rank.build()
      .then(data => {
        const somerank = 'https://media.discordapp.net/attachments/735897160943534121/778864919092789259/PicsArt_11-19-02.11.02.jpg?width=1442&height=320';
      const attachment = new Discord.MessageAttachment(somerank, 'rank.png')
      message.channel.send(attachment)
    });
  }
  catch(err){
    const error = new Discord.MessageEmbed()
      .setAuthor('Oh no!')
      .setTitle('An Error has Occured!')
      .setDescription(err)
      .setFooter('This is a code error. DM my Dev to solve the problem! (<owner)')
      .setTimestamp()
    message.channel.send(error)
  }```
#

It says me this

#

fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"

#

what can i do?

earnest phoenix
#

hmmm

#

i'm watching

earnest phoenix
tribal siren
#

So I analyze the two of them

#

Because I really can’t understand the problem

earnest phoenix
#

i dont have script

#

i deleted the files because a error

#

i need to did it againg

#

sry

tribal siren
#

oh

#

ok

lusty quest
#

i dont think this is an error in your script, something is unable to load a front

earnest phoenix
lusty quest
#

also its an warning not an error

earnest phoenix
midnight blaze
#

@earnest phoenix wow O: can you maybe do also a ping command for us!

rustic nova
#

T_worryNod good idea GWkyooHappyDay

pale vessel
#

thanks man

earnest phoenix
#

why are you kidding me?

opal plank
#

dont hardcode your token

earnest phoenix
opal plank
#

also im fairly certain you copied that code from somewhere

earnest phoenix
#

Yes sure

#

I original

#

Is very simpal

rustic nova
opal plank
#

i somehow doubt that, but aight

earnest phoenix
#

Now i will do status command

rustic nova
#

good luck ThumbsUp

earnest phoenix
#

Thx

opal plank
#

what?

midnight blaze
#

Just saying to learn typescript O:

#

that is all

opal plank
#

first off

#

tsc isnt a thing

#

Typescript is

#

also javascript wont be supported in the future?

#

wtf u on about?:

midnight blaze
#

discord js

opal plank
#

where did you even read that?

slender thistle
#

Wouldn't it then be discord.ts KEKW

opal plank
#

source

#

also ts IS js if you arent aware

#

there isnt a "no support"

#

they are the same, just with interfaces and sprinkles

#

before you continue with the discord js guide
forget discord js and learn tsc
javascript wont be supported in the future(discord js), so I would start directly with the right language
then why say something as wrong as this?

#

learn tsc

midnight blaze
#

that was a typo

opal plank
#

by lying to him?

earnest phoenix
#

lie

midnight blaze
opal plank
#

also you comparing a library with a transpiling command from ts

#

thats not an official source

earnest phoenix
#

fake

#

not real

#

i learned js

opal plank
#

like i said dude, you dont seem to know what ts is

earnest phoenix
#

now i can't learn again ts

opal plank
#

ts doesnt exist, it gets compiled into JS

earnest phoenix
#

no

opal plank
#

you seem the one to be lost dude

earnest phoenix
#

congrats

slender thistle
#

TS is just JS but with a compiler and not supporting TS pretty much means not supporting JS

earnest phoenix
#

ok i know js

#

i don't learn ts

slender thistle
#

Or vice versa

midnight blaze
#

that is what I am saying

opal plank
#

no you arent

midnight blaze
#

I guess you misunderstand me then

#

yep

earnest phoenix
#

sunt romani aici?

slender thistle
#

I don't speak Romanian

earnest phoenix
#

i speak english and romanian

#

i am 13 yrs old

#

🙂

opal plank
#

forget discord js and learn tsc
first this comparison. discord.js is a library, tsc is a transpiling command. You are comparing oranges to cars(not even apples)

javascript wont be supported in the future(discord js)
Im still waiting for an official source for this

warm marsh
#

You are probably Romanian and get taught English in School.

earnest phoenix
warm marsh
#

My point proven.

earnest phoenix
#

i learn english at school

warm marsh
#

🤦

earnest phoenix
#

#

Is my english bad?

midnight blaze
#

I have showd you from where I got it from 🤷‍♂️ It is just a common thing people say in the offical discord js server, there is no official source on it yet, but I dont see the problem. All I was saying is, why not start directly with ts. That is all.

earnest phoenix
opal plank
earnest phoenix
#

ok

#

sry

opal plank
midnight blaze
#

Because they work on something else(ts could be the future, maybe not) and I think it is a good idea to start with ts, when you are at the beginning. He obviously just started with the djs guide and I thought it would be an idea to tell him that he could also start learn ts and create a bot, instead of just using normal js^^

opal plank
#

i also doubt they'd be moving their support to ts only
first: i contacted them a bit ago, they didnt want nor need interfaces for ts that i offered
second: the majority of the users that use d.js are, to put it bluntly, not very knowledgeable in js
third: its discord.js, its stupid to move from js after the whole community the brought up on js, if they were to move it'd be forcing all those users into learning ts

slender thistle
#

TS is just a tool for easier development

pale vessel
#

You're a tool

slender thistle
#

ily2

opal plank
#

also the fact that they are updating their lib has no correlation with Ts whatsoever

#

why is v13 better TS wise when compared to v11 or v12?

pale vessel
#

It'll be written in TS

opal plank
#

you may have had good intention but what you said made no sense

#

i doubt they'd be using TS to write v13 tbh

#

its a major change

#

if you want an actual TS lib, use detritus, while its good their docs are a bit lacking in my opinion

#

there are other actual TS libs out there too if you look for them

tulip ledge
#

isnt TS just a fancier version of JS

opal plank
#

hence another reason i doubt d.js would move to ts since they are already the main lib for js users

#

it is

#

but you gotta learn ts

pearl cobalt
#

تبي كرديت بي اسهل طريقه

tulip ledge
#

but why do I see people using both JS and TS?

opal plank
#

they have been using js this whole time and made a community around it, what would be the reason to port it all to ts?

pearl cobalt
#

تعال خاص ادخل /السيرفر بس

midnight blaze
#

my English sucks, I really need to take some time to reread what I am writing

opal plank
#

@pearl cobalt english here

#

all good

pearl cobalt
#

استلم الف٥٠ كرديت

pale vessel
#

Wait, discord.js-next isn't v13?

pearl cobalt
#

@opal plank لا بس اسولف

opal plank
#

english

pearl cobalt
#

ماعرف

#

Not english

#

arb

opal plank
quartz kindle
pale vessel
opal plank
feral aspen
#
const member = message.mentions.members.first()

const embed = new Discord.MessageEmbed()
.setDescription(member.user.joinedAt)
#

gives out undefined.

opal plank
#

@feral aspen then member isnt defined

feral aspen
#

I just defined it

#

I did !userinfo <user> and it doesnt say when his account was created at.

opal plank
#

if there are no mentions it wont return anything

feral aspen
#

But I mentioned.

opal plank
#

first() returns the first item the collection OR undefined

#

log it before sending the rest

#

also why u using member to get user?

#

use user right away

pale vessel
#

memer

#

wha-

feral aspen
#
const member = message.mentions.members.first()

const embed = new Discord.MessageEmbed()
.setDescription("**・Joined At:** ${member.user.joinedAt}")

I do !userinfo <user> and it doesnt return, it returns undefined.

opal plank
#

not that dude

tribal siren
#
try{
    const member = message.mentions.members.first() || message.member;
    const user = await Levels.fetch(member.id, message.guild.id);
    const neededXp = Levels.xpFor(parseInt(user.level) + 1);
    if(!user) return message.channel.send("You don't have any messages in this server. Try sending some messages first, then try again!");
    const rank = new canvacord.Rank()
      .setAvatar(message.author.displayAvatarURL({ dynamic: false, format: 'png' }))
      .setCurrentXP(member.xp)
      .setRequiredXP(neededXp)
      .setStatus(member.user.presence.status)
      .setProgressBar('#216096', 'COLOR')
      .setUsername(member.user.username)
      .setDiscriminator(member.user.discriminator)
    rank.build()
      .then(data => {
        const somerank = 'https://media.discordapp.net/attachments/735897160943534121/778864919092789259/PicsArt_11-19-02.11.02.jpg?width=1442&height=320';
        const attachment = new Discord.MessageAttachment(data, somerank)
        message.channel.send(attachment)
    });
  }
  catch(err){
    const error = new Discord.MessageEmbed()
      .setAuthor('Oh no!')
      .setTitle('An Error has Occured!')
      .setDescription(err)
      .setFooter('This is a code error. DM my Dev to solve the problem! (<owner)')
      .setTimestamp()
    message.channel.send(error)
  }```
#

i got this warning

#

fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"

pale vessel
#

That is one long function for something so simple

midnight blaze
opal plank
#
const member = message.mentions.members.first()
console.log(member);
console.log(member.user.id)
const embed = new Discord.MessageEmbed()
.setDescription("**・Joined At:** ${member.user.joinedAt}")

@feral aspen use that at let me know your log

tribal siren
#

hm lemme check

#

thanks

feral aspen
#

it logged a lot of stuff

#

it logged my id

#

But how can I do the member.user.joinedAt thing

opal plank
#

oh im retarded

#

joinedAt isnt a member of user

#

its a member

#

remove .user

#

just member.joinedAt

feral aspen
#

Does it play as well to createdAt?

#

like member.createdAt?

opal plank
#

you need to understand those are 2 different things

#

user is your user

#

member is you as being part of the guild

#

imagine your nickname for example

#

why inst your nickname the same in all guilds?

feral aspen
#

Cause 1 only..

opal plank
#

each guild hold info about you, but its only part of the guild

#

user is your "account" info per se

#

user has a creation date

#

member has a joined date

#

user doesnt have a joined date since it isnt part of a guild

#

member doesnt have creation date because its part of a guild

feral aspen
#

Yeah, I understand! Thanks, I just now know.

#

Thank you! 🙂

opal plank
#

np

hasty mulch
#

Is there a .ultis module for Python? If so, how do I install it?

warm marsh
#

ultis?

earnest phoenix
#

Since it’s python if there is anything like that it will be a pip package. You can find them on https://pypi.org but I am not really sure what kind of module you are looking for? @hasty mulch

hasty mulch
#

It was discord.ultis

pale vessel
#

Utils

hasty mulch
#

Yeah

warm marsh
#

The exist, just not to the same extent.

hasty mulch
#

Mhm

#

Now I gotta figure where checks gets imported from

unborn ridge
#

My bot declined cause i mentioned nsfw command in dewcription 😒

pale vessel
#

Unfortunate

unborn ridge
hasty mulch
unborn ridge
earnest phoenix
warm marsh
#

yes

unborn ridge
warm marsh
#

from discord import utils

earnest phoenix
#

^ LIPD read that

hasty mulch
#

^

earnest phoenix
#

🤨

hasty mulch
#

Ah, fuck this. It’s a fucking outdated cog

#

I was looking for a starboard cog, but it’s too outdated

warm marsh
#

Just create one instead?

hasty mulch
#

I don’t know where to start as I have never worked with reactions before

earnest phoenix
hasty mulch
earnest phoenix
#

pretty simple, listen to on_raw_reaction_add where you specifically check for \⭐ , when the message contain 4 or more \⭐ , add it to the database along with the person who reacted on it using message.reactions and reaction.users

hasty mulch
#

I just learned API and autoposts, both a challenge with getting it right

hasty mulch
earnest phoenix
#

by don't seem to work well, wdym by that

hasty mulch
#

I tried getting an on_message listener working, and it just wouldn’t work, even with the intents

earnest phoenix
#

what's the code

hasty mulch
#

Uhhhh, let me look back

hasty mulch
# earnest phoenix what's the code
import discord
from discord.ext import commands
import asyncio

bot = commands.Bot

class DMCog(commands.Cog, name="DM Webhook Set-up"):

    def __init__(self, bot):
        self.bot = bot
        
    @commands.Cog.listener()
    async def on_message(self, message):
        if message.content.startswith('nya!dm'):
            await message.author.remove_roles(message.guild.get_role(767654541541244970), reason="DM Webhook created")
            print('Role removed successfully!')
            pass

def setup(bot):
    bot.add_cog(DMCog(bot))
earnest phoenix
#

why are you using on_message to create command instead of using ext.commands?

hasty mulch
#

The bot’s default prefix is r!

earnest phoenix
#

and then

hasty mulch
#

I wanted it to listen to this command so the role automatically got removed after it was sent cause the role had webhook perms

earnest phoenix
#

and you can't use ext.commands why?

carmine summit
#

Is there any way to replace Enter with /n

#

I have strings that uses enter rather than /n

#

its kinda pain to do it manually

hasty mulch
earnest phoenix
#

Hi

#

there's literally 0 reason to use on_message instead of using ext.commands, use @commands.command() to create a command in a cog

hasty mulch
#

The commands are different

#

The bot I’m using has the prefix r! while the command I want to trigger the removal is nya!dm

earnest phoenix
#

pass a list into your command_prefix instead, it will make nya! as an alias

hasty mulch
#

I can’t

#

Cause nya! is also a prefix for another bot

earnest phoenix
hasty mulch
#

Correct

earnest phoenix
#

use a check where it checks for ctx.prefix, if it's nya!, return True, else, raise an error

hasty mulch
#

So, run it as a regular command, with the ctx.prefix?

slender thistle
#

ctx.prefix won't be nya! unless you set it in the Bot object

#

which would apply it to the entire bot

hasty mulch
#

Which I don’t want

slender thistle
#

Actually

earnest phoenix
slender thistle
#

The idea with multiple prefixes was neat

#

Yeah

earnest phoenix
#

also dont do this in your cog, bot = commands.Bot, you're only suppose to do this in your main file, your bot instance is already passed in __init__

hasty mulch
#

That code hasn’t been touched in about a month, I say. I have been told this already

#

But, can we get back to the starboard thing? The original reason why I came here

earnest phoenix
#

yea just say the problem, i already told you the general idea, what's the issue

hasty mulch
#

I don’t know how to bind ctx.send with a listener

earnest phoenix
lyric mountain
#

quick question: are discord IDs fixed length?

earnest phoenix
#

no

#

i finished

#

the command

#

i believe it's 18 - 22

earnest phoenix
lyric mountain
#

hm thx

hasty mulch
carmine summit
rustic nova
carmine summit
#

yes, it is infact an irony

earnest phoenix
hasty mulch
#

Yeah

#

The result of what the listener created

earnest phoenix
#

just use get_channel what's wrong with that?

hasty mulch
#

But what do I put in the parentheses?

earnest phoenix
#

the channel id

hasty mulch
#

After I type send(

earnest phoenix
#

your message

sharp rock
#

hmm

#

code for add role?

hasty mulch
#

...

#

Just forget it...

carmine summit
#

I'm gonna make a troll bot based on Potatoes KEKW

sharp rock
#

........

earnest phoenix
hasty mulch
#

Not you @sharp rock

sharp rock
#

which?

carmine summit
#

<member>.roles.add(<guild>.roles.cache.find(r => r.name === '<role name here>'))

#

@sharp rock

#

Spoonfeed go brrr

sharp rock
#

nice

#

thxxx

#

i share my kick code

#

hmm

#

wait

#

or..

#

example attachmen

#
const { Client, MessageAttachment } = require('discord.js');

// Create an instance of a Discord client
const client = new Client();

/**
 * The ready event is vital, it means that only _after_ this will your bot start reacting to information
 * received from Discord
 */
client.on('ready', () => {
  console.log('I am ready!');
});

client.on('message', message => {
  // If the message is '!rip'
  if (message.content === '!rip') {
    // Create the attachment using MessageAttachment
    const attachment = new MessageAttachment('https://i.imgur.com/w3duR07.png');
    // Send the attachment in the message channel
    message.channel.send(attachment);
  }
});

// Log our bot in using the token from https://discord.com/developers/applications
client.login('your token here');```
#

example

#

rip

earnest phoenix
#

how can i replace token with something else in eval command in discord.js

#

here's a better solution

#

don't give eval

#

to people you don't trust with eval

#

mindblowing, right?

#

not mindblowing

#

cause i already did that

#

your token can be extracted and altered in an infinite number of ways, there's no way you can detect all of it

#

@earnest phoenix but i think theres something like replace

#

yes

#

your token is a string though

#

insert a space into the token, boom the replace doesn't work anymore

#

this isnt working thats why i am asking let evaled; if(evald.includes(client.token)){ let string1 = evald; let string2 = client.token; let string3 = 'Njhsvsgsvfu____________hdbfhfb'; evaled = string1.replace(string2, string3); } else { evaled = evald; };

#

why are you trying to hide to token

#

(you can't hide it effectively)

#

cause everyone did that

#

...so?

slender thistle
#

They only hid the token string

#

And if you aren't dumb enough to play with your token publicly, you shouldn't need to worry about your token being leaked

earnest phoenix
#

if only people you trust have access to eval then your token isn't a problem

pale vessel
#

how about

#

no eval command

earnest phoenix
#

i have one more problem

#

my bot is using too much ram what can i do ?

#

refactor your code to be less intensive

#

switch to using djs light / eris

#

@earnest phoenix how to refactor code ?

astral yoke
#

or how about locking your eval command to you only

earnest phoenix
#

@astral yoke did that

astral yoke
#

so why do you wanna attempt to hide the token

earnest phoenix
#

go through you code and see where there are derps and fix them

earnest phoenix
astral yoke
#

so then just get the argument and check if it contains token or not

earnest phoenix
#

you don't need to worry about the token if eval is accessible to only you

#

@earnest phoenix if i add delay to commands would it use more ram ?

#

no

pale vessel
#

what kind of question was that lmao

earnest phoenix
#

what i was hinting at was, for example, creating two objects when you could be creating one

#

at a small scale you wouldn't think it makes a difference

#

but when your code is being executed thousands of times a minute, it builds up

#

i need some how someone that knows discord (.js), to make a bot with me

earnest phoenix
#

ok

solemn leaf
#

cant you remve stuff from eval?

quartz kindle
#

wdym

solemn leaf
#

in rust you can like make lua evals

quartz kindle
#

but wdym remove stuff

solemn leaf
#

remove dangerous stuf

#

like require etc

quartz kindle
#

you want to make a public eval?

solemn leaf
#

Ive seen it done

quartz kindle
#

you need a custom js engine

#

using node is not safe

#

a barebones engine that has no built in modules

#

there are many ways to do that, Brain did it afaik

solemn leaf
#

tim so smart why

slim umbra
#

its not soo hard

#

u guys need to create a sandboxed enviorment

earnest phoenix
#

you can also eval in another process

quartz kindle
#

i guess you can try node's vm module

#

seems to do a good job at disabling all forms of I/O

pale vessel
sick fable
#

Hi! I coded a command which locks every channel if the server is in raided condition to stop it from spamming, so when I type the lock ever channel command. It spams the same message lol. So I want it to only send one

#

**

solemn leaf
#

make the cooldown 6 days

sick fable
#

Like?

earnest phoenix
#

You probably have send method inside the loop?

solemn leaf
#

like making the coooooldwn 6 days lng

sick fable
#

No ima send the code

coarse minnow
#

it spams one channel, or all locked ones?

sick fable
#
@commands.has_permissions(manage_channels=True)
async def lockall(ctx):
        for channel in ctx.guild.channels:
        	overwrites = {ctx.guild.default_role: discord.PermissionOverwrite(send_messages=False)}
        	await channel.edit(overwrites=overwrites)
        	await ctx.send("Licked every channel!")```
earnest phoenix
#

See, you do have it inside the loop

sick fable
#

@coarse minnow it spams one channel

earnest phoenix
#

Unindent the ctx.send 1 level

sick fable
#

?

coarse minnow
#

lol

#

move line 7 to 4

sick fable
#

Locked

#

Ok

coarse minnow
#
@client.command()
@commands.has_permissions(manage_channels=True)
async def lockall(ctx):
    await ctx.send("Licked every channel!")
        for channel in ctx.guild.channels:
            overwrites = {ctx.guild.default_role: discord.PermissionOverwrite(send_messages=False)}
            await channel.edit(overwrites=overwrites)
#

I believe

earnest phoenix
#

Uh, that indentation

sick fable
#

Done

#

So there are four channels in my test server, it spammed that same message 4 times

#

@earnest phoenix I did it but it did the same

#

Oh wait

earnest phoenix
#

Because you send it inside the loop 🗿

#

That's why i said to unindent it 1 level

sick fable
#

Holy fuck

earnest phoenix
#

Should be aligned with the for ... line

sick fable
#

It worked

#

No wayy

#

Thanks (:

tranquil copper
#

Is there a way to limit python RAM usage with a start parameter like on java?

sudden geyser
#

wdym by a start parameter in Java

rustic nova
#

@static marsh that's due to your formatting

#

Emojis to not work inside codeblocks

earnest phoenix
static marsh
#

Can I solve this problem somehow?

rustic nova
#

Yes, don't use codeblocks with emojis

sudden geyser
#

I don't think -xmg is an option.

#

and I know you're referring to the command line

static marsh
#

(

earnest phoenix
#

don’t do ‘’’emoji’’’

#

Put the emoji outside the ‘’’

#

emojis don’t render in ‘’’

rustic nova
hollow sedge
#
😃 ```
you can if you use the actual emoji
earnest phoenix
#

unicode yeah

#

not custom ones

umbral zealot
hollow sedge
#

Oh mb I didn't read that far up

weary ridge
earnest phoenix
#

I think you are in the wrong directory

sudden geyser
amber thistle
#

the vote event isn't triggering when i voted my bot

static marsh
opal plank
#

@static marsh this is a codeblock

#

this is a normal message

#

```this is the codeblock message```

amber thistle
#

this is a message

#
dbl.webhook.on('vote', vote => {
  console.log('triggered')
  console.log(vote.user)
  let user = client.users.cache.find(user => user.id === vote.user).tag

  client.channels.cache.get("764317983131828277").send(`Thank you ${user} for voting Isla on top.gg`)
});

any idea why this is not being emitted when i vote my bot?

quartz kindle
#

did you configure it in your bot's page?

amber thistle
#

configure wut?

quartz kindle
#

go to your bot's page

#

go to edit

amber thistle
#

im there

quartz kindle
amber thistle
#

yea

quartz kindle
#

what did you put there

amber thistle
#

in the authorization box,i put the password

quartz kindle
#

and in url?

amber thistle
#

nothing

quartz kindle
#

then thats why

amber thistle
#

so i need to put a http url or something?

quartz kindle
#

where is your bot hosted?

amber thistle
#

on heroku

quartz kindle
#

then your url is https://YOURPROJECTNAME.herokuapp.com/dblwebhook

amber thistle
#

oh

quartz kindle
#

and in your code, you have to use webhookPort: process.env.PORT

amber thistle
#

is there another way to test the vote event except from waiting 12 hours everytime

earnest phoenix
#

im new to this i need help wheni do "node bot.js" in the terminal to start it. it says "TypeError: Discord.client is not a constructor" can somone help

quartz kindle
amber thistle
#

ah

earnest phoenix
#

im new to this i need help wheni do "node bot.js" in the terminal to start it. it says "TypeError: Discord.client is not a constructor" can one of u help

quartz kindle
#

Discord.Client should have an uppercase C

earnest phoenix
#

thank you sir

cerulean jetty
#

Pls help

#

The reward vote role don't work!

#

Pls help!

amber thistle
#

at=error code=H14 desc="No web processes running" method=POST path="/dblwebhook" host=beatsdcbot.herokuapp.com request_id=712431bf-bf44-4abc-b3de-c6c040d7d075 fwd="165.22.130.154" dyno= connect= service= status=503 bytes= protocol=https

quartz kindle
#

what reward vote role?