#development

1 messages · Page 440 of 1

sullen path
#

use y.invite

#

It'll give you the link

onyx summit
#

men

#

also its 2 bots

solid cliff
#

--ignore-watch

onyx summit
#

@solid cliff and then the path or just the foldername?
And how to run multiple

solid cliff
onyx summit
#

I did that, didnt worked

quartz kindle
#

i autorestart my bot by running it in a loop

lethal shuttle
#

Guys, noobish question but does the detailed description for a bot need to be in coded HTML or can it just be raw text

quartz kindle
#

it can be raw text

lethal shuttle
#

Ah good, I look into it being more fun later on

quartz kindle
#

chose md/markdown from the drop down menu, so you can have all the text styling features discord has

#

like * and `

lethal shuttle
#

Yea

fleet mason
#

Oops! Error: 401 Unauthorized

#

why do i get that error when trying to connect my bot to the api?

knotty steeple
fleet mason
#

ops

lethal shuttle
#

What does this mean?

#

What token

mental solstice
#

Depends.. what are you trying to use

lethal shuttle
#

A discord bot

#

But it’s working

mental solstice
#

U created a bot user and copied that token?

#

Or is that dbl?

solemn valve
#

ok i have the request headers

lethal shuttle
#

Ah nvm

mental solstice
#

Whats the difference

#

Between browser req headers and your code

solemn valve
#

i have the headers from the browser im trying to find out where they are in the code

#

on the request side

mental solstice
#

Sort of the same as getting the response.. if i wasnt at work.. id tell u lpl

earnest phoenix
#

I have problem with API

#

Somebody help?

#

Python

quartz kindle
solemn valve
#

is this theright way to set the content headers on an http request in c#?

#

            HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, "https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=ja&dt=t&q=test");
            request.Content = new StringContent("",Encoding.UTF8,
                                                "application/json");//CONTENT-TYPE header


            HttpResponseMessage response = await _client.SendAsync(request);```
#

my string format is empty but it returns the same as before

mental solstice
#

There is a lot of ways.. i think there is am actual method for it tho.. add...Header

#

Default maybe?

#

And commenting that its the content-type, doesnt make the webpage know what it is :)

solemn valve
#

nah thats just ripped from stackoverflow

#

and modified

mental solstice
#

Is addDefaultHeaders a method under your _client

#

Or inside your request call

lethal shuttle
#

Guys, what’s shards for?

quasi marsh
#

Using multiple connections to Discord

#

Incase your bot gets big you will need it

lethal shuttle
#

Wait

#

So it’s like multiple hosts

#

Nice

quasi marsh
#

Think of it like this

#

Every time an event happens Discord sents it to all clients that can read it

#

But when you are in a lot of guilds that pipe gets a bit clogged

#

So you just add more pipes

lethal shuttle
#

I get you

#

So basically more entry/exit points

quasi marsh
#

Yeah

#

If you use discord.py or discord.js or Eris they have great sharding support

#

They support something called internal sharding

lethal shuttle
#

Ah, I’ll look into that

quasi marsh
#

Basicly that means getting all the smaller pipes and converging into 1 big pipe again

lethal shuttle
#

Nice

earnest phoenix
#

hi

lethal shuttle
#

Thanks for telling me

quasi marsh
#

No problem

earnest phoenix
#

if you are using discord py if you are using commands.Bot(some parameters) change the Bot part to AutoShardingBot

quasi marsh
#

Yeah that's the internal sharding I mentioned

vernal crow
#

Also, if your bot serves more than 2500 servers, you will be legally required to shard it by penalty of law.

#

Jk, your bot just won’t be able to log on

solemn valve
#

no its defaultrequestheaders.add

#

@mental solstice

quasi marsh
#

On another note, do you know what happens when you are running on 1 shard and your bot doesn't go down, and you break the 2500 limit

#

I figure you just don't receive events for everything past the 1st shard

#

Or would it just work until you restart?

mental solstice
#

Oh. Yeah, work with @solemn valve add the same headers as your browser sends, and try again

#

Header will be "name":"value

quasi marsh
#

Not like the discord api is stable enough to never let your stuff go down but hypothetically

earnest phoenix
#

i think it will crash

vernal crow
#

@quasi marsh I would assume some measure would be in place that would shut off your bot, since in d.js, your client is integral to every call it receives

mental solstice
#

"Content-Type", "application/json" etc

solemn valve
#

yeah thats what i think im doing

#

😄

vernal crow
#

In a similar manner to if you reset your token while your bot is runing

quasi marsh
#

Hmm that's a possibility

earnest phoenix
#

yeah

restive silo
#

@quasi marsh Internal Sharding has a big disadvantage

quasi marsh
#

Yeah it's single threaded

restive silo
#

yup

quasi marsh
#

tbh when I'm gonna write v3 my bot is going to be nothing more than a shell for my platform

#

But that depends on when the internal sharding has issues

knotty steeple
#

can fs see hidden files?

quasi marsh
#

Kinda wonder if Danny is experienced enough with Python to write a multi-process autosharder

#

That would be wicked

solar vigil
#

My discord is broken.

grizzled totem
#

gj

earnest phoenix
#

definetely broken

#

Deleting Bot messages after the command message has been deleted in discord.py (rewrite)?

#

sorry, idk what to do about that

simple bramble
#

So I put in this code for my game status, await Client.SetGameAsync("Type /AJ/help | " + Client.Guilds + " servers!"); but this comes up on the playing status, idk why

tidal parrot
#

Client.Guilds.size

simple bramble
#

ok

native narwhal
#

What language is that?

simple bramble
#

c#

tidal parrot
#

oh nvm

#

ignore me then

quasi marsh
#

because you need to calculate the length of it

shy verge
#

@simple bramble <client>.Guilds.Count

simple bramble
#

ok

#

that works

shy verge
#

hot

turbid gale
#

len(client.guilds)

simple bramble
#

i got it to work

turbid gale
#

that had nothing to do with yours btw

#

but nice

simple bramble
#

ok

grizzled totem
#

its being weird and displaying the wrong role

knotty steeple
#

code?

grizzled totem
#

entire command or how i'm getting the role?

knotty steeple
#

how your getting the role

grizzled totem
#
let role = msg.mentions.roles.first() || msg.guild.roles.get(args[0]) || msg.guild.roles.find(ro => ro.name.includes(args.join(' ')));
if (!role) { role = msg.member.highestRole || 'n/a'; }

if (role === 'n/a' || !role) return msg.reply('I couldn\'t find a role with the provided arguments.');
quasi marsh
#

won't msg.mentions.roles.first() always succeed in finding the first role of the server?

#

Not a JS expert btw

tidal parrot
#

yes it will

inner jewel
quasi marsh
#

it should all be stept

inner jewel
#

wouldn't it get first mentioned role?

quasi marsh
#

check args first

#

then check highest member role, if not found check the first role in the server that's not everyone

grizzled totem
#

kind of fixed it, alright though

inner jewel
#

no

grizzled totem
#

alright

inner jewel
grizzled totem
#

yeah, got it. ruins that idea in my head, thanks though 😄

earnest phoenix
#

you can omit title and do it in description

quasi marsh
#

What you could do is set the embed color to the role color

grizzled totem
#

already am

#

one other question, what are the permissions that allow you to join/speak in vcs, and the add reaction one?

earnest phoenix
#

ADD_REACTIONS for the reactions one

#

USE_EXTERNAL_EMOJIS if you want to react with non-default emojis that are not present in the reacting server

#

CONNECT to join vcs SPEAK to speak xD

grizzled totem
#

alright

#

thanks

#

await mute(msg.guild, msg.member, user, reason); thats where its erroring

earnest phoenix
#

uhm what's mute

#

it doesn't error there but within, also UnhandledPromiseRejection is a promised function erroring that is not awaited / catched

grizzled totem
#

mute is a function that sends a message, thats all

#

and alright

earnest phoenix
#

so the error is coming from inside that func, you're trying to resolve a role but the supplied parameter is unresolvable :p if you show more code / context we can help you more

grizzled totem
#

dunno why thats happening tbh but its gone now

#

though it still won't send to the mod log channel

#
mute: async (guild, moderator, user, reason) => {
        let { modlog, caseId } = await r.table('guilds').get(guild.id);
        if (!modlog || !caseId) return;
        if (modlog === 'disabled') return;

        let channel = await guild.channels.get(modlog);
        if (!channel) return;

        caseId++

        const modCase = new RichEmbed()
        .setColor('#E1C15C')
        .setAuthor(`${user.tag} muted (case #${caseId})`, user.displayAvatarURL)
        .addField('User', `${user.tag}`, true)
        .addField('Moderator', `${moderator.user.tag}`, true)
        .addField('Reason', `${reason || 'No reason provided.'}`, true)
        .setTimestamp()
        channel.send({ embed: modCase }).catch((err) => { return; });

        await r.table('guilds').get(guild.id).update({ caseId: caseId });
    },

thats the code it uses to get the mod log channel and send it

#

but it never sends, and it doesn't error

quartz kindle
#

looks fine, try logging all the steps to see if there isnt anything broken

earnest phoenix
#

is modlog a snowflake at the point you retrieve the channel?

quartz kindle
#

modlog should be the channel id there

#

but the error was expecting either a role or a snowflake, so something related to roles

earnest phoenix
#

he said the error is gone, it just won't send message now

#

well you could catch(console.error) instead of sending it to the void

#

maybe send errors but you never know because of that catch there xD

quartz kindle
#

true

#

could be something wrong with modCase or with channel id

grizzled totem
#

fixed that up, turns out it was something really stupid lol

#

modlog was actually set as undefined in the db

earnest phoenix
#

lol

grizzled totem
#

..but i dunno how to do it with snekfetch

neon frost
#

people pls help me

sick cloud
#

ask. your. question.

neon frost
#

what is this?

sick cloud
#

Pretty self-explanatory, you have a memory leak.

neon frost
#

and, how fix it?

#

just when there is no code here, the error does not occur

austere meadow
#

you're adding too many message event listeners

#

can we take a look at your code

abstract mango
#

hm

#

yeah

#

imo you shouldn't use the .on('message') stuff

#

try a command handler

sick cloud
#

You still need one .on('message', ...

abstract mango
#

i don't know much about d.js but there's a lot of command handlers out there

#

eh true

spring ember
#

yeah create a simple handler that redirects names to functions

abstract mango
#

i'll just say that command handlers will make the bot code much more simpler

#

yeah i just took a look at the code

#

that's WAY TOO MANY handlers

neon frost
#

how do I understand I have to create a separate js file for the commands?

abstract mango
#

if you don't want to use a command handler at least don't use a handler for each command

neon frost
#

ok thx

abstract mango
#

like

#
azart.on('message',(message) => {
  if(message.content == "///roll"){
      if(getRandomInRange(1, 10) == "9")
      message.reply("You fell :nine:");
  }
});

azart.on('message',(message) => {
  if(message.content == "///roll"){
      if(getRandomInRange(1, 10) == "10")
      message.reply("You fell :keycap_ten:");
  }
});

could be

azart.on('message', (message) => {
  if (message.content == '///roll') {
    if (getRandomInRange(1, 10) === 10) {
      message.reply('you got :keycap_ten:')
    } else if (getRandomInRange(1, 10) === 9) {
      message.reply('you got :nine:')
    } // etc, etc
})
neon frost
#

waow, I wouldn't have thought of that, thank you very much. 😃

abstract mango
#

np

grizzled totem
#

anyone know about my question?

merry stirrup
#

Can someone help me? I have a question about Heroku, hosting my js bot
Plz ping me if you can help

spring ember
#

just ask the question smh

merry stirrup
#

ok

#

in my bot it creates a file ( "(Servername) | (Server ID).json" ) for settings like a custom prefix,...
When I host my bot on Heroku it creates the file when I invite the bot to my server, but when it restarts, the file doesn't exist anymore for heroku/the bot.
So then I need to reinvite my bot again so it can create the file, but when my bot goes public, I can't make it so for every update I do, every owner needs to reinvite the bot

grizzled totem
#

use a database, json is also dangerous for public bots

merry stirrup
#

ow ok, it there a vid for how to make a db

#

never used it

grizzled totem
#

no

#

just setup one, sql, enmap, rethink, any

merry stirrup
#

ok thx

slender thistle
#

In SQLite3, should I use cursor.close() and connector.close() in my function after commiting my changes?

austere meadow
#

@slender thistle i remember when i used SQLite i didn't have to use any of that
do you mind elaborating or something

#

then again that was like 9 months ago when i had no idea what i was doing

restive silo
#

thats still me

knotty steeple
#

ok, so im rewriting my bot economy and im wondering if i should just add them to the database when any command is ran or just make an create account type command

earnest phoenix
#

enmap isnt a db

knotty steeple
#

um im using sqlite

earnest phoenix
#

not u

grizzled isle
#

@earnest phoenix it's a binary database if using persistence.

earnest phoenix
#

no

#

its an enhanced map with persistence features, not a db

grizzled isle
#

Okay whatever you say.

karmic parcel
#

then what's nosql? zoomEyes

acoustic olive
#

@merry stirrup idk if someone told you yet but you cant creat or edit files with heroku

#

unless you buy a plan with a database

austere meadow
#

did snekfetch v4.* feature any breaking changes over 3.6? i can't make a simple get request that would usually work in 3.6 on >4.0

#

just returns unexpected token u in JSON at position 0

acoustic olive
#

check the lib

earnest phoenix
#

show code

austere meadow
#

i've checked but can't seem to find much

past pike
#

(node:1434) UnhandledPromiseRejectionWarning: DiscordAPIError

at item.request.gen.end (/rbd/pnpm-volume/cf191059-75c8-4859-ac1b-4aca702197aa/node_modules/.registry.npmjs.org/discord.js/11.3.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:71:65)

at then (/rbd/pnpm-volume/cf191059-75c8-4859-ac1b-4aca702197aa/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:215:21)

at <anonymous>

at process._tickCallback (internal/process/next_tick.js:188:7)

(node:1434) 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:1434) [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.

I get this error, but it gives not what the reason is. Does someone know what's wrong?

earnest phoenix
#

and what version of v4

austere meadow
#

4.0.4 i believe

#

it was the most updated one

earnest phoenix
#

show code

#

bo, show code

#

make that a cmd when

austere meadow
#
snekfetch.get("https://nekos.life/api/v2/img/neko")
            .set("Accept", "application/json")
            .then(res => {
                mes.edit(`${client.util.emoji("ok", message.guild)} Here's your neko!\n${JSON.parse(res.text).url}`)
            })

don't bag me for using a neko command as code it's just the simplest mmLol

acoustic olive
#

@past pike DiscordAPIError

austere meadow
#

this code works on 3.6 (right now) but not on 4

past pike
#

yeah i know, but normally it gives why but now it doesn't

earnest phoenix
#

remove the .set

#

and

austere meadow
#

@past pike are you on master

earnest phoenix
#

use res.body

austere meadow
#

i've heard master has been having issues

earnest phoenix
#

res.body.url

past pike
austere meadow
#

ok but why does it work on 3.6

#

and not 4

earnest phoenix
#

i didnt know JSON was text

#

bc text isnt the same

#

and you should be using res.body

austere meadow
#

awh fine

#

are res.body and res.text essentially the same

#

whats the difference

earnest phoenix
#

res.body is parsed data

karmic parcel
#

text is probably added

austere meadow
#

oh so i dont need to parse it

earnest phoenix
#

nah

#

lol

austere meadow
#

ee

#

alright cheers for telling me

earnest phoenix
#

yw

acoustic olive
#

hey jon if you'r free can you tell me how to check permissons of the @everyone role in a secifique channel

earnest phoenix
#

@austere meadow

past pike
#

I know what the problem is. My bot gets new token every minute. How to stop that?

austere meadow
#

oh nice

karmic parcel
#

new tokens?

austere meadow
#

does snekfetch default set the content-type to application/json?

acoustic olive
#

thats some UFO sh*t right there

karmic parcel
#

I didn't think it did

acoustic olive
#

probebly cus you'r changing them

karmic parcel
#

he might have it in the headers

earnest phoenix
#

it checks what the response's content-type is then parses it

austere meadow
#

ah okay

earnest phoenix
#

if non, it returns raw

#

aka text

acoustic olive
#

i tryed .permissionOverwrites but it give all the roles in the channel and i couldn't specificate it to one role

austere meadow
#

how do you know so much about snekfetch despite hating it

#

lmfao

earnest phoenix
#

i dont hate snekfetch

#

thonk

austere meadow
#

well yeah

karmic parcel
#

He may have looked at code too

austere meadow
#

but you don't like how it has dependencies or whatever

karmic parcel
#

Gus's code flows pretty well

earnest phoenix
#

it has no deps

#

what are u on

austere meadow
#

or was that something else you were talking about

#

fuck bro

#

im cooked

earnest phoenix
#

i think u mean superagent

karmic parcel
#

lol Blake boi

austere meadow
#

isn't d.js switching from snekfetch to superagent though

earnest phoenix
#

to node-fetch

austere meadow
#

i dont remember what they were switching to but i know they're ditching snekfetch

earnest phoenix
#

and they already have

karmic parcel
#

idk why they would zoomEyes

austere meadow
#

yeah

earnest phoenix
#

but i cant stand node-fetch

austere meadow
#

i can't either

karmic parcel
#

Snek is smart af

austere meadow
#

i thought snekfetch was good

earnest phoenix
#

mainly bc it forces you to nest promises

austere meadow
#

but apparently it was bugged or something

acoustic olive
#

but snekfetch seems to die in some websites

earnest phoenix
#

thats fixed in v4.0.4

karmic parcel
#

I've seen some breaking issues when updating on occasion

acoustic olive
#

i need to update then

#

i've been trying to get a picture from a website but keep getting 404 error

#

also the update command is npm i snekfetch ?

knotty steeple
#

no

karmic parcel
#

give yarn a try

past pike
#

When i use my command prompt to start my bot, then it starts but on the website where it hosts says DiscordAPIErrror, so I don't know what the problem is. Someone knows how to fix it?

acoustic olive
#

isn't the token missing ??

past pike
#

nope

#

else he also did not start in cmd

#

it's the same code

earnest phoenix
#

@austere meadow if u want a fetchURL method like me i suggest doing ```js
return new Snekfetch(method, url, options).then(res => res.body)
.catch(error => {
Error.captureStackTrace(error);
throw error;
})

so its any method
karmic parcel
#

You should be able to do npm update

acoustic olive
#

whats the command to update a lib ??

austere meadow
#

why are you returning a new Snekfetch

#

oh

earnest phoenix
#

take a guess what snekfetch.METHOD does

#

METHOD = get, post etc

austere meadow
#

ah okay

acoustic olive
austere meadow
#

where do you put the fetchURL method

#

do you store it in the client or in a structure

earnest phoenix
#

Command

karmic parcel
#

what does npm outdated look like for you?

earnest phoenix
#

is options

karmic parcel
acoustic olive
#
      const snekfetch = require('snekfetch')
      const Discord = require('discord.js')
      const bot = message.client
      snekfetch.get('http://aws.random.cat/meow')
        .then((res) => {
          const embed = new Discord.RichEmbed()
            .setTitle(`Some random cute cats`)
            .setColor('RANDOM')
            .setImage(res.body.file)
            .setTimestamp()
            .setFooter('Requested At:', bot.user.displayAvatarURL)
          message.channel.send(embed)
        })
#

is it cus of my code or what??

earnest phoenix
#

aws.random.cat has THICC ratelimits

#

so no its not u or ur code

austere meadow
#

tfw i dont even use random.cat

acoustic olive
#

so its cause of those 2m requests

austere meadow
#

i gave up on them

earnest phoenix
#

same

acoustic olive
#

weeb?

austere meadow
#

i use some other random api nobody has heard about

karmic parcel
#

use Tom's API

#

nekos.life

austere meadow
#

http://thecatapi.com/api/images/get

earnest phoenix
#

I've heard of it

#

but it didnt work for me

#

:(

austere meadow
#

i should go for weebsh tbh

#

i didn't know weebsh had that

#

i just thought it has nekos

earnest phoenix
#

they also have dogs

karmic parcel
#

https://nekos.life/api/v2/img/meow

round mantle
#

hi, i'm making a bot and i'd like it to have it's own custom emojis. Do you know if it's something possible?

acoustic olive
#

by the way

#

my bot uses some cute nekos girls from the neko.js lib

karmic parcel
#

neko.js?

acoustic olive
#

but it has some lolis in it is that allowed in bot lists?

#

yes

#

it also has an api

karmic parcel
#

are you referring to nekos.life js lib?

acoustic olive
#

yes

karmic parcel
#

I wrote that

acoustic olive
#

XD

earnest phoenix
#

i wrote neko.js

acoustic olive
#

it contains some lolis are they allowed ?

earnest phoenix
#

its a big joke

karmic parcel
#

to be fair, you were learning some shit then

#

so meh

earnest phoenix
#

yeah

karmic parcel
#

¯_(ツ)_/¯

earnest phoenix
#

I haven't touched it since i made it

karmic parcel
#

You've improved a shitload so I wouldn't worry about it lol

earnest phoenix
#

only to update deps

karmic parcel
#

I think he has new endpoints now though

earnest phoenix
#

it does

#

I need to update it

#

and remove auth

karmic parcel
#

I just have a json file with the endpoints and let the js file generate the functions

earnest phoenix
#

probs what im gonna do

karmic parcel
#

speaking of which, I think someone PRed a change in the json and idk if I updated it yet

#

lol rip

earnest phoenix
#
for (const endpoint of endpoints) {
    Object.defineProperty(Client, {
        value: function() { return get(endpoint) }
    });
}```
#

kthxs bai

acoustic olive
#

no answered my question..... 😢

slender thistle
#

@acoustic olive I doubt lolis are disallowed unless it's 18+.

acoustic olive
#

no

#

i ment about checking the permissions of eveyone role in a specifique channel

slender thistle
#

Oh, I am reading the wrong thing.

acoustic olive
#
  message.channel.overwritePermissions(message.guild.id, {
    SEND_MESSAGES: false
  })
  message.channel.send(embed)
  setTimeout(function () { //so this code dont excute if the unlock command was triggered
    message.channel.overwritePermissions(message.guild.id, {
      SEND_MESSAGES: null
    })
    message.channel.send('Lockdown Lifted')
  }, ms(time))
slender thistle
#

If it's not Python, I can't help, sorry. ¯_(ツ)_/¯

acoustic olive
#

rip

mental solstice
#

Youre checking a guild id though?

acoustic olive
#

yes

#

everyone role is the guild id

mental solstice
#

Anyone above the everyone role will still be able to talk

acoustic olive
#

yes

#

if they have the permission to send messages then yes

#

i dont have enought time to code something that allows the mods to select the specifique roles that must be muted

jovial sigil
#

Hello guys! Idk why but I am suddenly getting this error overnight....

node:2010) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): DiscordAPIError

(node:2010) [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.

I don't quite understand the error....

mental solstice
#

Did you read the error?

jovial sigil
#

Yes, but I don't understand it

mental solstice
#

The error is unhandled.. so you will need to .catch() it to make it "handled"

#

Without knowing your code, youd have to figure out which promise youre sending that is unhandled

jovial sigil
#

Hmmmm

#

I do have a bunch of trys already...

#

I really don't think it's my code since it was running fine yesterday until this morning npm auto updated it's packages

mental solstice
#

Valuable lesson. Just copy paste the error into google. Specify the language.. JS

#

That would make you assume something changed in one of your libs that requires error handling

#

Should*

jovial sigil
#

Hmm I see

#

Okay thanks I'll look at it more in detail

last jacinth
#

I need help on making my bot's auto-response to not work here. But work in other servers where it's allowed

slender thistle
#

An if statement.

simple bramble
#

when i try to enter the command, like ask Hello! It should say "Hello!" in the embed, but it gives me a "message not found" error. idk how to fix this

real ginkgo
#

I have a question.

knotty steeple
#

what is it GWqlabsSigh

real ginkgo
#

How do you install node-opus

#

when I do npm i node-opus

#

theres an error

#

?

knotty steeple
#

what is the error

real ginkgo
knotty steeple
#

what are the logs above

real ginkgo
#

@knotty steeple

knotty steeple
#

install python 2.7

real ginkgo
#

I dont use python

gilded blaze
#

Opus needs python.

real ginkgo
#

Oh wow...

#

Than how do people make bots using Opus is Javascript then?

gilded blaze
#

People can use javascript for the bot, but Opus itself uses python.

#

You only need python installed.

real ginkgo
#

Than how can you use Opus with Javascript with Python Needed?

#

Python is installed on my laptop anyway

gilded blaze
#

Just install python and you are good.

real ginkgo
#

I have?

gilded blaze
#

Then for some reason Opus can't find the executable. Thonk

real ginkgo
#

What Python do I need?

gilded blaze
#

Pretty sure it uses python 3.5.

real ginkgo
#

3.5.5

#

?

#

5.4

#

?

#

3.5.4

gilded blaze
#

Would use latest one.

real ginkgo
#

The one that was just made yesterday

#

was

#

3.6.6

#

Gzipped source tarball
Source release

9a080a86e1a8d85e45eee4b1cd0a18a2
22930752
SIG
XZ compressed source tarball
Source release

c3f30a0aff425dda77d19e02f420d6ba
17156744
SIG
macOS 64-bit/32-bit installer
Mac OS X
for Mac OS X 10.6 and later
c58267cab96f6d291d332a2b163edd33
28060853
SIG
macOS 64-bit installer
Mac OS X
for OS X 10.9 and later
3ad13cc51c488182ed21a50050a38ba7
26954940
SIG
Windows help file
Windows

e01b52e24494611121b4a866932b4123
8139973
SIG
Windows x86-64 embeddable zip file
Windows
for AMD64/EM64T/x64
7148ec14edfdc13f42e06a14d617c921
7186734
SIG
Windows x86-64 executable installer
Windows
for AMD64/EM64T/x64
767db14ed07b245e24e10785f9d28e29
31930528
SIG
Windows x86-64 web-based installer
Windows
for AMD64/EM64T/x64
f30be4659721a0ef68e29cae099fed6f
1319992
SIG
Windows x86 embeddable zip file
Windows

b4c424de065bad238c71359f3cd71ef2
6401894
SIG
Windows x86 executable installer
Windows

467161f1e894254096f9a69e2db3302c
30878752
SIG
Windows x86 web-based installer

#

Which?

#

Uhh

#

@gilded blaze

#

Can you choose what one I need

gilded blaze
#

Uhh i'm not really sure.

real ginkgo
#

I use Windows

#

Its installed

#

should I retry?

#

I will

#

oh nvm

#

its installing still

vocal raft
#

I changed the name of my bot. I took it down off of the listing website and re submitted it hoping it would reflect the name change, but to no avail. Can someone help?

slender thistle
#

What library

vocal raft
low rivet
#

did the name chnage on discord..?

inner jewel
#

@vocal raft to update name on the list you just need to edit & save the bit

vocal raft
#

On the invite page, yes. But in Discord, no

inner jewel
#

bot*

#

no need to delete it

#

also to update the username you need to use your library

#

updating application name doesn't work

vocal raft
#

ahhhhhh

slender thistle
#

Was it <Client>.edit()?

#

Or client.user.edit() GWfroggyBlobThonk

simple bramble
#

what this ask command is supposed to do is that you are supposed to do something like ask Hello! and it will say hello (or whatever you wrote after "ask") in the embed, bit in the console it gives an error with "message not found" idk why

real ginkgo
#

omg.............................................................................................................................................................................

#

Why isnt node-opus not working

#

PYTHON in installed

earnest phoenix
#

node opus isn't python is it?

#

Show your error

knotty steeple
#

what version did you install

real ginkgo
#

3.6.6

earnest phoenix
#

not python, nodeopus

real ginkgo
#

Oh.

#

No version

#

I just did

knotty steeple
#

it needs v3.5

real ginkgo
#

npm i node-opus

#

Oh wow

#

3.5

#

what?

#

though?

#

3.5.?

earnest phoenix
#

he/she has higher

#

it shud work

real ginkgo
#

I give up..

#

Its a he..

knotty steeple
#

it needs a certain version then

earnest phoenix
#

lol just checking

knotty steeple
#

just install 3.5.0

earnest phoenix
#

show your error @real ginkgo

knotty steeple
#

he cant install node-opus

#

thats it

earnest phoenix
#

if it says python not installed, check if you installed it with the right env variables

#

@knotty steeple there can be many reasons for it.

#

the error would help

knotty steeple
#

the error says he needs python

real ginkgo
#

there 3.5.0

earnest phoenix
#

send the exact error @real ginkgo

knotty steeple
#

python always adds itself to env variables @earnest phoenix

earnest phoenix
#

not necessarily

gilded blaze
#

No.

knotty steeple
#

unless you uncheck the option

earnest phoenix
#

or if you install it manually

knotty steeple
#

in the installer

real ginkgo
#

Um..

knotty steeple
#

what

earnest phoenix
#

send the error while installing node-opus

real ginkgo
#

@knotty steeple

#

@earnest phoenix

earnest phoenix
#

hm

slender thistle
#

Would Python not being added to PATH matter?

knotty steeple
#

yes

real ginkgo
#

That could be why..

#

I didnt add it to path

earnest phoenix
#

yea

real ginkgo
#

Should I add it to path

#

Im installing 3.5.0

#

it says mdify..

#

modify*

earnest phoenix
#

yes add it to path

gilded blaze
#

Install latest python. Add it to the path and opus should be able to detect.

earnest phoenix
#

^

real ginkgo
#

Ima reinstall it and re-do it

#

K added it to path

#

and installed latest

earnest phoenix
#

did it work?

topaz fjord
#

@slender thistle node-gyp requires python

real ginkgo
#

dooesnt worrk

#

same error

#

@earnest phoenix

earnest phoenix
#

try doing python in your cli

#

just that

topaz fjord
#

did you install node-gyp correctly

earnest phoenix
#

to check if it is in env

real ginkgo
#

Idk

#

node-gyp

#

didnt install tht?

topaz fjord
#

use the "On Unix"

real ginkgo
#

K

#

@earnest phoenix installed node-gyp

#

but when I do npm i node-opus

#

still wont work

topaz fjord
#

what the error

marsh lark
#

trying to install node-opus?

#

@real ginkgo

real ginkgo
#

Yes..

marsh lark
#

open cmd or powershell as admin
cd your bot source folder
npm install --global --production windows-build-tools
wait for it to be done then
npm --add-python-to-path='true' --debug install --global windows-build-tools
then
npm i node-opus

topaz fjord
#

hes on linux afaik

real ginkgo
#

Im on a windows

marsh lark
#

oh ;p

topaz fjord
#

oh ur on windows

#

wait

real ginkgo
#

lol yes

marsh lark
#

Do that on windows

real ginkgo
#

nobody speak i need it

topaz fjord
#

are u installing node-opus on windows zoomeyes

real ginkgo
#

yes

topaz fjord
#

have fun with node-gyp

marsh lark
#

if you want to install it just do what i said 😛

topaz fjord
#

it took me like 5 tries to install it using the long method

marsh lark
#

effort of that

#

tell me if it works anyway ;p

real ginkgo
#

Omg.......................

#

Nope..

marsh lark
#

it cant be done that quick lol

#

What did you do?

real ginkgo
#

It wont run

topaz fjord
#

use the long way then, which is method 2

jovial sigil
#

hello, sorry to bother you guys again, but i am suddenly getting this error:

UnhandledPromiseRejectionWarning: Error: An invalid token was provided.

It was working correctly earlier (for about 3 weeks). I even regenerated my token, but it is not working still. What can I do to fix this?

real ginkgo
#

it wont run the

#

build tools

#

bit

topaz fjord
#

build tools takes a while

real ginkgo
#

it says open as windows powershell

#

but then when I cd my bot folder

marsh lark
#

You have to run as admin

real ginkgo
#

it says error

#

Im as admin

marsh lark
#

Then your not doing it right if you cant go in the folder

real ginkgo
#

I did cd C:\Users\Omen\Desktop\Apollo Bot\

#

it said error

marsh lark
#

must not be the path then 🤷

jovial sigil
#

try it with quotes

marsh lark
#

Unless in Apollo Bot have it as ApolloBot

#

A space sometimes acts wierd

real ginkgo
#

k

topaz fjord
#

if you are doing spaces in directories it needs to be in quotes when u cd into it

real ginkgo
#

wdym quotes

jovial sigil
#

cd "C:\your\path\with space"

real ginkgo
#

OMG YES

#

IT WORKED

marsh lark
#

Rock is it right token? and not client id your inputting?

jovial sigil
#

yes i am positive its token since it clearly states token next to it on the discord page

marsh lark
#

Did you try with a test bot to see if your code is right?

jovial sigil
#

hmm no, ill give that a go

marsh lark
#

Like make another app and use its token

real ginkgo
#

.

#

as administrator...

#

IM ON ADMINISTRATOR..

marsh lark
#

If that still doesnt work theres something wrong with your code most likely

#

forester when running you right click and run as admin

real ginkgo
#

k

#

npm install --global --production windows-build-tools

marsh lark
#

just be patient doing it

real ginkgo
#

waiting..

#

what will it say when finished?

marsh lark
#

it will just be done and go back in as normal for you to do the next one

#

Like C:\whatever>

real ginkgo
#

installed python 2.7

#

POWESHELL

#

went..

#

Uhh

#

oKAY HOPEFULLY

#

this will work

#

Okay so..

jovial sigil
#

okay i tried creating a new app, with no functionality other than the ping-pong example, but it still gives the same exact error D:

marsh lark
#

what you doing it in d.js?

topaz fjord
#

try resetting your token again

marsh lark
#

he has from my understanding

jovial sigil
#

yes discordjs

#

yes i've already reset it twice

marsh lark
#

show me your code but remove the token

jovial sigil
#

token is in a private area so should be good

marsh lark
#

oki

real ginkgo
#

Uhh

#

Idk if it worked

marsh lark
#

what did it do?

topaz fjord
#

did it install properly

real ginkgo
#

idk

marsh lark
#

bruh

topaz fjord
#

like have the + <modulename> thingy at the bottom

real ginkgo
#

Idk

topaz fjord
#

wait up can you calrify

#

you dont know if what worked

#

if the module installation

#

or the node-gyp stuff

real ginkgo
#

Idk

#

Im lost..

#

Ill never make a good bot.

marsh lark
#

all you gotta do is follow the steps

real ginkgo
#

I did

#

but it isnt working..

marsh lark
#

and?

real ginkgo
#

It installed but then I accidentally closed it half way through

#

I redid the tools thing

#

and it worked

#

I did the thing after

#

and then npm i install node-opus

#

It just came up with white writing

#

thats it

topaz fjord
#

can u send a screenshot

real ginkgo
#

I got rid of it

topaz fjord
real ginkgo
#

Im dead

onyx summit
#

can someone tell me a open source antispam?

#

a good one

#

you say interval 1000 but it doesnt care

gilded thunder
#

Code:

@bot.command(pass_context=True)
async def quote(ctx, message_id):
    message = message_id.content
    embed=discord.Embed(title="Quoted message", description=str(message))
    await bot.say(embed=embed)```
Error:

Traceback (most recent call last):
File "/home/joshek/.local/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 846, in process_commands
yield from command.invoke(ctx)
File "/home/joshek/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 374, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "/home/joshek/.local/lib/python3.5/site-packages/discord/ext/commands/core.py", line 54, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'str' object has no attribute 'content'

inner jewel
#

'str' object has no attribute 'content'

#

mesage_id.content

gilded thunder
#

ctx.message.content is valid.

quasi marsh
#

You have to fetch the message first

#

Use client.get_message(channel, id)

earnest phoenix
#

Does anyone have a bot that uses the imgflip api?

#

nope

#

i use giphy's api

#

and giphypop wrapper

quasi marsh
#

I wanted to check it out but their login was bugged

earnest phoenix
#

I keep getting the No texts supplied error even though it has text0 and text1

onyx summit
#

need help with pm2

#

I have 2 bots (one mine, one a random guy on this server wich needed a host lol), I want to run both at the same time, also with monitor
So my problem, how to make it restart when it crashes(I think it does that normal), how to make it restart when a *.js was changed
excluded Node_Modules ofc (becasue when i just do --watch, it restarts when my bot edits any file (like a db))

#

plz tag when you can help

earnest phoenix
#

hi

solar vigil
#

Can anyone direct me to a good tutorial on Python config files?

spring ember
#

.ini?

#

what is a config file?

solar vigil
#

discord.ext.commands.errors.CommandNotFound: Command "ban" is not found

#

Anyone have an explanation for that?

earnest phoenix
#

command ban is not defined :p

quasi marsh
#

You don't have a ban command

#

Make one :p

earnest phoenix
#

:p

solar vigil
#

Oh.

earnest phoenix
#

also make an error handler

solar vigil
#

I just realized my stupidity.

#

My intense stupidity.

earnest phoenix
#

:p

solar vigil
#

My command is called banuser.

earnest phoenix
#

:p

merry stirrup
#

Does someone know a host that has an in build database

earnest phoenix
#

i made a bigger mistake :p

#

How do I make my page look really nice?

#

while i were making a scy!shoot command i accidentally set sender = sender.convert("RGBA") as sender = shot.convert("RGBA") which made it look like the shot person is shooting itself :p

solar vigil
#

Heh.

merry stirrup
#

Does someone know a host that has an in build database

earnest phoenix
#

nope

#

i'm hosting the bot on my laptop :p

solar vigil
#

Is there an easy way to identify a command caller, or a mention?

merry stirrup
#

But then iT isnt 24:7

earnest phoenix
#

discord.Member

merry stirrup
#

24/7

solar vigil
#

As in *command @user and grab that user's information?

earnest phoenix
#

yes

#

you then get the discord.Member object

merry stirrup
#

How u host iT 24/7 on your laptop? Do you keep iT open 24/7?

earnest phoenix
#

yes

merry stirrup
#

Hahaha

#

Maybe yea

earnest phoenix
#

i'm not using databases so that's not a problem for me

merry stirrup
#

Me eather

#

But I want one

earnest phoenix
#

even if i were using databases i'd rather save to a file than go with a hosting

merry stirrup
#

Or a host that is able to create and edit files and keep thel

#

Ok thx

earnest phoenix
#

host is just hosting your bot

#

it won't take care of file management

merry stirrup
#

Thats Why I need a db

#

But idc

#

Otherwise I need to change my whole bot

earnest phoenix
#

mhm

marsh lark
#

mongoose

earnest phoenix
#

lemme see something

mental solstice
#

What OS are you running?

deep yoke
halcyon mountain
#

oh sit im bad

#

sit xd

onyx summit
#

Hi bad

#

xDDDDDDDDDDDD

deep yoke
#

hi bad

#

I'm looking for a sex bot

real ginkgo
#

Can somone help me make a play command

deep yoke
#

of what kind of game?

real ginkgo
#

Or make it so It will atleast join the voice channel

earnest phoenix
#

what library are you using? d.py? d.js?

real ginkgo
#

d.js

deep yoke
#

you need peer dependencies

#

opus.dll no? GWgoaThinken

restive silo
#

for d.js voice you need node-opus

#

and ffmpeg

real ginkgo
#

i have ffmpeg

#

but node-opus wont work for me?

restive silo
#

node-opus requires a C++ Compiler and python

#

installed on your device

deep yoke
#

what os are you using?

real ginkgo
#

I have python........

restive silo
#

but you dont have a C++ compiler

#

and you need both

real ginkgo
#

Can I have a link

#

to that/

deep yoke
#

node-opus runs with mvc?

real ginkgo
#

?

deep yoke
#

or only gcc?

restive silo
#

on windows people use Visual Studio C++ compiler but on linux gcc works

#

build-tools install all you need

deep yoke
#

interesting

real ginkgo
#

I have build-tools

solar vigil
#

Am I an idiot?

#

I can't figure out how to use discord.User.

#
@bot.command()
async def ban(user):
    user_id = # get the ID of the user arg
    print(str(user_id))
    bot.ban(user)
    await bot.say("Attempted to ban " + user+".")
marsh lark
#

i swear i told you how get node-opus Thonk

real ginkgo
#

It still wont work

#

Im an idiot 😦

marsh lark
#

But you dont even know what it did

real ginkgo
#

I looked at it and followed the steps.

#

But it still didnt work...

marsh lark
#

why

real ginkgo
#

idk

marsh lark
#

Then i cant help...

real ginkgo
#

I guess Im lost.

keen drift
#

build-essentials should contain the buildtools to build node-opus

#

¯_(ツ)_/¯

real ginkgo
#

Im dead.

turbid gale
#

@solar vigil Set the argument as user: discord.Member

real ginkgo
#

I got opusscript

#

instead of

#

node-opus

deep yoke
#

what os?

real ginkgo
#

.

#

Im making a music thing

#

so lemme create a test bot to try.

deep yoke
#

in what os xd

#

in order to build node-opus

real ginkgo
#

?

frail harness
#

Which operating system are you using

real ginkgo
#

Windows 10

#

?

abstract crystal
halcyon mountain
#

How make mention prefix

Example:
@boreal yacht help

limpid cosmos
#

Does anyone would like to host my bot ?

halcyon mountain
#

What lib you use?

limpid cosmos
#

Djs

halcyon mountain
limpid cosmos
#

Okay I'm going to try it

halcyon mountain
#

At AnIdiotsGuide is a tutorial

#

@RaikaS#0178

#

How make mention prefix

Example:
@boreal yacht help

gilded thunder
#

@solar vigil ```python
async def ban(ctx, user : discord.User):
bot.ban(user)

#

That's it iirc

limpid cosmos
#

@halcyon mountain website is offline I think

halcyon mountain
#

@limpid cosmos Its not

#

Reload the page

limpid cosmos
#

Same

halcyon mountain
#

How make mention prefix

Example:
@boreal yacht help

quiet bobcat
#

depends on lib

halcyon mountain
#

discord.js

quiet bobcat
#

google it

halcyon mountain
#

I found nothinf

quiet bobcat
#

it's not that hard? Check if the message starts with a mention of your bot then just set the prefix to that

solar vigil
#

How do I add an exception handler so if the type isn't correct it prints something?

wispy roost
#

how are other bots displaying how many servers they're in on the site? I'm using java, jda

gilded thunder
#

@solar vigil Look around before you ask.

#

We're not here to answer everything.

wispy roost
#

thank you!

gilded thunder
#

All good.

solar vigil
#

I have looked around.

#
    async def ban(user: discord.Member):

        await bot.ban(user)
#

I'm just trying to execute code if user is not discord.Member.

gilded thunder
#

I legit just gave you a snippit.

#

Of working code

solar vigil
#

Uh, when?

#

Yeah, the code works.

#

I want to write it to properly handle when someone calls it wrong.

fleet mason
#
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.exports.run (/home/ubuntu/bot/commands/ROTMGcommands/verify.js:8:21)
    at Client.client.on.message (/home/ubuntu/bot/ROTMGindex.js:125:21)
    at emitOne (events.js:116:13)
    at Client.emit (events.js:211:7)
    at MessageCreateHandler.handle (/home/ubuntu/bot/node_modules/discord.js/src/client/websocket/packets/handlers/MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (/home/ubuntu/bot/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:103:65) code: 'MODULE_NOT_FOUND' }
#

wut?

#

why do i suddenly get this error?

knotty steeple
#

cuz you dont have request installed

fleet mason
#

i have

#

the bot have been running for about 1 month now

#

and then discord api went down or something and it rebooted and boom this error

#

il just try to reinstall request

#

wow it fixed it

#

wtf is that shit

knotty steeple
#

so on my bot im getting TypeError: member.addRole is not a function

#

i have this:

#
    const guy = msg.mentions.users.first()
    const member = msg.guild.member(guy);
    let muterole = msg.guild.roles.find(c => c.name === `${row.muterole}`);
member.addRole(muterole)
topaz fjord
#

did u console.log(member)

#

to see if its there

knotty steeple
#

no let me see

#

it is there

earnest phoenix
#

Can anyone help me with html on my bot page?

quartz kindle
#

what do you need?

earnest phoenix
#

I want to edit the colour of the buttons

#

and change the background colour

grizzled totem
#

view page source, find the buttons class

quartz kindle
#

inspect element to get their class

grizzled totem
#

and add a style thing

topaz fjord
#

u edit the colors with css

quartz kindle
#

^

earnest phoenix
#

How

quartz kindle
#

right click

#

inspect element

earnest phoenix
#

is it ```
<css>
fhisdjhfsd
</css>

knotty steeple
#

no

quartz kindle
#

<style>

knotty steeple
#

its style

earnest phoenix
#

kk

#

welp

knotty steeple
#

also thats not valid example css lol

#

but can someone help me with my problem

#

i console.log member and i do get output

earnest phoenix
#
<style>
  .button-orange.color
</style>
#

how do I determine color?

quartz kindle
#

???

earnest phoenix
#

is it hex codes?

grizzled totem
#

@knotty steeple isn't it msg.guild.members.get('id') or msg.guild.members.find(m => m.user.username === 'username')?

#

to get a member

topaz fjord
#

maybe you should learn some css before starting

quartz kindle
#
.class {
    background: #000000;
    color: #000000;
}```
grizzled totem
#

@earnest phoenix google css guides, w- nvm

#

@quartz kindle 🥄 👀

topaz fjord
#

are u spooning his eye

quartz kindle
#

im not

grizzled totem
#

lol

quartz kindle
#

im teaching css

knotty steeple
#

its css not spoonfeed imo

quartz kindle
#

i didnt gave him the exact class

#

nor the color

topaz fjord
#

css is annoying to work with

quartz kindle
#

spoonfeeding is giving them a code to copy paste without them needing to do anything

#

i dont consider an example that they need to edit as spoonfeeding

grizzled totem
#

each to their own i guess

earnest phoenix
#

I don't think this is right

#
<style>
.button-orange {
    background: #000000
}
</style> 
grizzled totem
#

does .button-orange exist?

earnest phoenix
#

yes

topaz fjord
#

.button-orange isnt even a class on the website

earnest phoenix
#

ill screenshot

#

nvm

#

its btn

#

not button

knotty steeple
#

btn-orange?

topaz fjord
#

still dont think thats a thing

earnest phoenix
#

yes

#

it is

#

cos that works

topaz fjord
#

wtf it is

#

its the vote buttons

quartz kindle
#

class="votebutton btn btn-orange btn-2x"

#

yup

topaz fjord
#

why would it be classified that

#

who knows

#

¯_(ツ)_/¯

knotty steeple
#

only web admins do

quartz kindle
#

also

#

nice css overrides

#

lmao

grizzled totem
#

what port does glitch run on?

topaz fjord
#

3000 afaik

simple bramble
#

whats the async task in c#/d.net where if you put in a subcommand as something that would be put in an embed (ex ask Hello!) it will respond in the embed with hello

grizzled totem
knotty steeple
#

whats your code

grizzled totem
#

its all there

topaz fjord
#

when you do res.render('index')

#

index is an ejs file

#

@grizzled totem

grizzled totem
#

i know

#

but, its not actually starting

topaz fjord
#

wheres you index.ejs

grizzled totem
#

server.js/app.js isn't starting

#

thats my issue, not that

topaz fjord
#

whats the error

grizzled totem
#

no errors

#

it just shows the files instead of showing an error (which it should - i left index.ejs out)

topaz fjord
#

it doesnt console.log listening ..

grizzled totem
#

nope, the glitch console shows no "listening" console.log

small lily
#

psa: wrap your error handler in a try catch so you don't get errors trying to show your errors

languid dragon
#

aren't ports supposed to be passed as numbers

restive silo
#

yes they are

earnest phoenix
#

i think so

celest mango
#
@Bunny_Bot.command(pass_context = True)
async def dmperson(ctx, member : discord.Member, *, content: str):
    if ctx.message.author.id != 168473188571807746:
        return
    else:
        await user.send(member, content)
earnest phoenix
#

you have to use member.send(content)

#

wait

#

scy!info 168473188571807746

ruby dust
#

you defined member as a parameter, so use that instead of user

celest mango
#

yeah I got it

earnest phoenix
#

also don't include member

celest mango
#

why not?

earnest phoenix
#

i mean don't include member in member.send(member, content)

celest mango
#

I know

earnest phoenix
#

ok

past pike
#

does somebody know how to send a mentions member a dm with your bot?

#

I tried different ways but can't find it

earnest phoenix
#

What library are you using?

past pike
#

discord.js

earnest phoenix
#

Sorry mate, ask someone else here.

knotty steeple
#

wdym @past pike

past pike
#

wait a second. I make a script and share it

earnest phoenix
#

-_-

past pike
knotty steeple
#

send a dm for the person mentioned?

past pike
#

the bot sends me a dm now, but how can he send the mentioned user? (look in the link)

knotty steeple
#

do you know how to get a mentioned user?

past pike
#

a little bit

#

i use a let command for that

knotty steeple
#

message.author.send(warned);

#

this

#

it will send to you because you are the message author