#development

1 messages · Page 679 of 1

pallid zinc
#

I also use to host on glitch

#

As a result I lost my code

stray garnet
#

@earnest phoenix i dont have an PC

#

@pallid zinc Oof

#

@pallid zinc rewind?

earnest phoenix
#

Oh you're on phone

#

glitch ain't that bad just try to find balance with it

#

glitch is bad

#

my bot is basically being balanced on the tip of my finger

pallid zinc
#

U can't have module

stray garnet
#

@pallid zinc uh u can

earnest phoenix
pallid zinc
#

My code was suspected because of module

#

As I use 10 module

earnest phoenix
#

okay a development question why glitch is so bad?

pallid zinc
#

Less than 10 I think

earnest phoenix
#

Glitch lagging so much and discord block some glitch ip, also every change is a restart, and the bot could be banned for api abuse

pallid zinc
#

U will be suspended soon

#

Lol

lost pike
#

Anyone else has problems with having their bot send messages to the announcemnets type channels?

#

And if so, any ideea for a workaround?

earnest phoenix
#

?

#

i just import my git repo to glitch whenever i've made changes

stray garnet
#

@pallid zinc why? lmao

proper inlet
#

How to move a voice channel to a category without inheriting category perms? (discord.js)

quartz kindle
#

i dont think its possible in stable, but in master it is

gilded plankBOT
earnest phoenix
#

@quartz kindle its possible

#

@proper inlet you need to set the parent

quartz kindle
#

he wants to set the parent without inheriting permissions. setParent has an option for that in master, but not in stable

#

ie: .setParent(id, { lockPermissions: false })

spare goblet
#

If it's a channel you're making you can set category when submitting ChannelData
I'm on stable and I don't think that's possible

pallid zinc
#

@stray garnet they do the same with me

stray garnet
#

@pallid zinc glitch likes me lol

pallid zinc
#

It also like me for 1 week

tight heath
#

@urban apex what does it log to the console tho

#

@stray garnet email/token reset is automatic on too many logins

earnest phoenix
#

@urban apex yep

#

Fakevote exist

#

Click on Test webhook

earnest phoenix
#

how can i change the bots nickname by command?

west spoke
#

You will likely need to make a POST request, if the API doesnt support it.

earnest phoenix
#

ok

urban apex
#

were?

twilit rapids
#

@urban apex what lib are you using

urban apex
#

javascript

twilit rapids
#

You can create a custom command to do it, or run an eval

amber fractal
#

That's a lang

twilit rapids
#

everyone uses discord.js these days though

#

You cannot change the bot's nickname on the site of DBL

urban apex
#

okay and what is the command/code?

twilit rapids
#

<User>.setNickname("New Nickname")

urban apex
#

i try to make a Fakevote xD

amber fractal
#

@twilit rapids every top bot that uses js uses eris tho

#

Not that I like eris

twilit rapids
#

Yeah because those are experienced coders

#

Every new dev uses discord.js

#

because it's the first result when you google search "how2makediscordbot"

opaque eagle
#

I like my eris

#

But for small, temporary testing/prototyping/batch job type stuff I just use d.js since shit’s a little easier to do

copper cradle
earnest phoenix
#

hello

twilit rapids
#

hi

earnest phoenix
#

how can I get bot developer?

copper cradle
#

clue

#

bot developer

twilit rapids
#

Get your bot approved on the website

earnest phoenix
#

oh ye

#

nice

copper cradle
earnest phoenix
#

Q: I imported discord and from discord.ext.commands imported Bot.

#

await client.say(random.choice(possible_responses)) why does it always say "say is not defined"?

slender thistle
#

You sure it's that line

earnest phoenix
#

yes

onyx summit
#

add \n between them

tight heath
#

show code

#

owo

onyx summit
#

join the array with \n
I'm pretty sure that will work

tight heath
#

why do you need a library to do hastebin btw

#

it's like

onyx summit
#

cuzz he can't make requests or is lazy

tight heath
#

like

#

wha

onyx summit
#

No

tight heath
#

no

#

.map(...).join('\n')

#

you're uploading an array

#

not a string

#

.join joins the elements of an array into a string

onyx summit
#

dude

#

No

#

he said .map(...).join('\n')
you are doing .map(...)).join('\n')
You are trying to join a heccing promise

#

Yeah.. that looks correct

#

No problem big Dev boi

tidal stone
#

Anyone here that has 2mins of time to help with quick single line of code in discord JS?

tight heath
#

dont ask2ask

#

just

#

state your issue

#

:)

#

redis isnt starting on my vps i cri

onyx summit
#

How should I save user uploaded files?
I thought about converting MP3 to opus to get rid of metadata, does that make sense?

tight heath
#

what

onyx summit
#

what part wasnt understandable?

quartz kindle
#

You should probably also convert them to a fixed bitrate, so they dont abuse yoir storage by uploading too high bitrate files

#

Can they upload wav/flac?

onyx summit
#

not yet, I thought I will go for mp3 only

#

(yet, maybe later)

quartz kindle
#

Yeah you can use some converter that can handle multiple file types

#

And convert everything to a single preset

onyx summit
#

what format would you recommend to convert to?

quartz kindle
#

I think mp3 is pretty good at trading quality with storage space, but i havent worked with opus yet, it might be good too

onyx summit
#

but having metadata is bad, no?

quartz kindle
#

I believe You can strip metadata out of mp3 files as well if you dont need it

#

If your goal is to playback via voice, you should probably go with what discord likes more

onyx summit
#

Yes, so probably opus?

quartz kindle
#

Probably yes

#

Opus at 64kbps should be good enough, else 128kbps

harsh robin
#

been working on a patching system

#

but I need to learn sockets to finish it up

abstract crow
#

Web developers, how do you guys manage both the node console and the web console at the same time? I have some errors in both and it seems unusual to have to manage both

mossy vine
#

problem in node console? look in backend code. problem in web console? look in frontend code

gilded plankBOT
slender thistle
olive kindle
#

Why ping me

#

:/

gilded plankBOT
slender thistle
#

Did you see my message or not

urban apex
#

sry

abstract crow
#

Does anyone know how to have Sentry and the console? Sentry disables my local console

earnest phoenix
#

@urban apex that's weird

#

Basically it's under regenerate token

urban apex
#

lol

onyx summit
#

@abstract crow you mean, the regular console? That's not true for me, I have sentry and my normal console logs

abstract crow
#

Yeah the regular node console

#

As soon as I remove the sentry init and stuff, I can actually see what is going on

onyx summit
#

I don't have that problem blobhmmm

#

My pm2 logs show the errors too

gilded plankBOT
#

tickNo This user has no bots

onyx summit
#

Not the correct channel for that...

loud salmon
#

there isnt a right channel for that anymore mmulu

slender thistle
onyx summit
#

Well, but offtopic would fit best

abstract crow
#

Would anyone know that if I wanted to receive emails on something like vinniehat@url.com, but url.com still be a website, what would my FDQN be?

#

FQDN*

indigo geyser
#

d.py What are payload attributes?

amber fractal
#

@abstract crow are you trying to forward or make your own mailing system for yourself

abstract crow
atomic quarry
#

I'm trying to get my bot to stay online but it's not working it just stays offline

earnest phoenix
#

don't use free hosting

grim aspen
#

it says the error right there

#

read down

wanton nova
#

😳 didnt expect my bot to blow up

#

almost 150 servers in less than a day

warm marsh
#

So is it bad if I were to add a music downloader onto my bot like ytdl?
Just in case you misunderstand, If I save the music to a file is this considered as anything bad?

earnest phoenix
#

except copyright infringement and piracy (which almost every single one of music bots on discord do), nothing to worry about

warm marsh
#

Lmao.

#

I guess it's probably not a good idea, My bot will probably crash. 2 core and 2GB ram and it's already salty.

atomic quarry
#

@grim aspen I didn't ask what the problem was. I asked if anyone knows how to fix the error

topaz sphinx
#

thread object has no attribute stat

#

basically

#

thread_object.stat doesnt exist

atomic quarry
#

So what am I supposed to do delete it

topaz sphinx
#

it doesnt exist

#

its like

#

trying to make up some function

#

that doesnt exist

#

maybe you spelt it wrong

#

or you walk in ur dreams, which is unlikely

#

or u use it on wrong object

#

kinda like when u forget os.path.join and write os.join

restive light
#

'''let rl = readline.createInterface({
input: fs.createReadStream('test.txt')
});

let line_no = 0;

// event is emitted after each line
rl.on('line', function(line) {
line_no++;
console.log(line)
});

// end
rl.on('close', function(line) {
console.log('Total lines : ' + line_no);
});'''

#

how can i do "Last line is: " ?

grim aspen
#

completely broken code

restive light
#

just answer my question please

loud salmon
#

is this a programming assignment

restive light
#

are you guys are here for helping

#

or

#

to criticize people?

#

the channel title says "If you have questions, ask the questions." not " Wait someone to criticize you"

earnest phoenix
#

what the channel topic doesn't say is "be bitchy"

#

people are allowed to criticise your code, however it would be better to provide constructive critisism

#

but if your code is beyond broken, don't expect people to help you

restive light
#

maybe you guys has understanding problem

#

i just said how to change "Lines: " to "Last line:"

#

not all code

#

thats doesnt matter with broken code. I already dont want all code, i just talking about how to change "Lines: " to "Last line: "

#

whatever i found the solution

#

you guys are really helpfuly

#

thanks

abstract crow
#

@restive light If you have a problem you let us know, but don't go complaining here. Your code is extremely messy and not even in a code block or bin. No need for the attitude and saying that we have understanding problems.

abstract crow
#

Does anyone actually know how I can use the access token from Discord's Oauth2? I got the access token, just don't know how to use it

earnest phoenix
#

What acces token??

#

You mean the client secret?

abstract crow
#

No the access token

#

The token you get after the POST request

earnest phoenix
#

you make requests to the api with it

#

authorization header needs to be formatted as Bearer <accesstoken>

opaque eagle
#
const acceptable = [prefix, `<@${this.client.user.id}>`];
if (message.author.bot || !acceptable.some(message.content.startsWith.bind(this))) return; // doesn't work
if (message.author.bot || !acceptable.some(e => message.content.startsWith(e))) return; // works```
#

Why doesn't the second line work?

unreal sedge
#

I'm using Visual Studio Code to develop a discord bot. Is there a way to display the discord emojis in a terminal when using console.log?

opaque eagle
#

well unicode emojis can be displayed in the terminal anyways...

#

those r emojis

#

but discord emojis can't be shown in the terminal... you can, however, send the text behind them, like !ytho

unreal sedge
#

hm, I have something like this:

#

where I use the 👍 in my code and I log the emoji.

opaque eagle
#

oh

#

that depends on ur os/terminal tbh

#

generally works fine on unix-based systems

unreal sedge
#

Oh, I'm working on Windows 10.

earnest phoenix
#

Anyone know a tool that lets you automatically download github code upon a push and execute the console to host itn

opaque eagle
#

use git hooks

#

Also that task is so simple, you could easily write your own tool that does that

#

in like half an hour

earnest phoenix
#

The thing is, it's on a friends computer

opaque eagle
#

write a webhook server that changes your updated code upon request + use nodemon (a npm package that re-starts code whenever changes are made to the file)
Go to ur github repo's settings and add ur webhook server to the list of hooks and listen on push event

earnest phoenix
#

So I want it to be as streamlined as possible

opaque eagle
#

yes

unreal sedge
#

@zealous veldt Do you happen to know if there's an easy way to log an emoji like 👍 on a terminal on windows (e.g. from VS Code)?

earnest phoenix
#

I guess it is possible if I could contain all the code into a file I could just send him

zealous veldt
#

No need to tag me, I'm not sure

unreal sedge
#

oh sorry.

opaque eagle
#

Smth like this would do```js
const http = require("http");
const util = require("util");
const { exec } = require("child_process");

const GITHUB_URL = "https://github.com/SinistreCyborg/ProjectEuler.git"; // one of my repos as example
const PATH_TO_CODE = "~/path/to/code/here";

http.createServer((req, res) => {
res.writeHead(200);
util.promisify(exec)(git clone ${GITHUB_URL} ${PATH_TO_CODE} --recurse-submodules)
.then(() => console.log("Updated code!"));
}).listen(4000);```

quartz kindle
#

@unreal sedge ```
In your settings.json:

{
"terminal.integrated.env.windows": {
"LC_ALL": "C.UTF-8"
}
}```

opaque eagle
#

And just make ur github repo send hooks to ur server in ur repo settings

#
  • instead of node <file> just do nodemon <file>
#

and you'd be all set tbh

earnest phoenix
#

I guess you could write code to open the console and write "node ." To where the code is located and auto host?

#

Or is that a included feature in nodemon?

opaque eagle
#

well then you'd have two instances of the same bot running... the initial one and the updated one

#

nodemon re-runs the code every time a change is made.

#

why re-invent the wheel, ya know

earnest phoenix
#

Oh, sorry misunderstood what nodemon did

#

But yeah seems about what I'm looking for, hope my friend gets around to install git

opaque eagle
#

One more solution... instead of writing a webhook server, you could just set your server as a remote and push to it

earnest phoenix
#

Huh, how would I push directly to the remote ?

opaque eagle
#

git push <remote name> <branch>

brazen ocean
#

Hello

#

hey i so need help

#

i have UnhandledPromiseRejectionWarning: Unhandled promise rejection. error

earnest phoenix
#

Send screenshot

#

We need more information

opaque eagle
#

@brazen ocean

brazen ocean
#

yea

#

@earnest phoenix why?

earnest phoenix
#

To help you

#

The bot missing a permissions

brazen ocean
#

why error send

earnest phoenix
#

And also he can't send a empty message

#

Show your code

#

Without token

wheat jolt
#

@brazen ocean

brazen ocean
#

ye?

#

@wheat jolt

wheat jolt
#

Show the code

brazen ocean
#

which code?

wheat jolt
#

Of your bot

#

You said your bot throws an error

earnest phoenix
#

@brazen ocean

#

@pseudo parcel

pseudo parcel
#

?

earnest phoenix
#

Show me what is in your event folder

pseudo parcel
#

here

earnest phoenix
#

Okay so

#

Go to ready.js

pseudo parcel
#

but my bot's playing or text thing is in bot.js

earnest phoenix
#

Yeah

#

Ik

pseudo parcel
#

im did it a lot and nothing does

earnest phoenix
#

Show me your ready.js

#

File

pseudo parcel
#

copy paste it right?

#

const chalk = require('chalk');
const moment = require('moment');
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

module.exports = client => {
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Aktif, Komutlar yüklendi!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: ${client.user.username} ismi ile giriş yapıldı!);
client.user.setStatus("LISTENING");
client.user.setActivity(ox!yardım \ ox!davet);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Oyun ismi ayarlandı!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Şu an + client.channels.size + adet kanala, + client.guilds.size + adet sunucuya ve + client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + kullanıcıya hizmet veriliyor!);
};

earnest phoenix
#

Remplace client.user.setGame by client.user.setActivity

#

@pseudo parcel

pseudo parcel
#

done

earnest phoenix
#

Try now mmSuperHappyMilk

pseudo parcel
#

ok

#

done.

earnest phoenix
#

Working? @pseudo parcel

pseudo parcel
#

yes

#

anyways

#

how could i can do it 7/24

earnest phoenix
#

What?

pseudo parcel
#

24/7

earnest phoenix
#

24/7 what?

#

Host your bot?

pseudo parcel
#

yup

earnest phoenix
#

Dont put off your computer or buy a vps, and if you dont want to pay you can try free hoisting like heroku, glitch but it's not recommended, self hosting is always better than free hosting services

#

don't terminate your console and leave ur pc on 👌

pseudo parcel
#

ok.

#

im set my bot starting .bat thing to start folder

earnest phoenix
#

just don't terminate your console and ur bot stays online

pseudo parcel
#

wait im need google translate .

#

ok

earnest phoenix
#

dont close your console

pseudo parcel
#

so shortly dont close ur console

earnest phoenix
#

ye

pseudo parcel
#

ok.

main karma
#

guys, is there any code for a unban system?

#

like what should i use

earnest phoenix
#

nobody can write the code for you

#

you can found one on google but, it's preferable to read docs and make your own unban command

#

Its better if you want to learn

#

It's easy to make and dont require a lot of time

#

@main karma

main karma
#

thanks

vivid sentinel
#

Hi. Would it be possible to get the docs updated for the dblpy lib on the site?
link: https://discordbots.org/api/docs#pylib

    def __init__(self, bot):
        self.bot = bot
        self.dblpy = dbl.Client(self.bot, dbl_token)  # <--- this should be dbl.DBLClient(self.bot, dbl_token)

(the README is correct in github)

earnest phoenix
vivid sentinel
#

yeah ive got it now, just a heads up its wrong on site, which was my first point of reference, as I suspect it would be for others too 😃

slender thistle
#

cc @bitter sundial

bitter sundial
#

how is it wrong

opaque eagle
#

How do you peeps use audit logs for mod logs on kick? Discord.js/Eris (either is fine)

celest flame
#

ne diyon oç

earnest phoenix
opaque eagle
#

but how do I make sure that it was the right kick

#

like they could've been kicked, then re-join, then leave by will

#

and it would return true since they were kicked before

amber fractal
#

Lib?

#

It takes a guild member...

#

Just give it your client's id

#

That's for guild

#

I thought you said for channel

fervent pilot
#
    console.log(`${bot.user.username} is online`);
    if (config.activity.streaming == true) {
        bot.user.setActivity(config.activity.game, {url: ''});
    }   else {
        bot.user.setActivity('')
        bot.user.setStatus('Online');
    }


});```
#

Does anyone know what is wrong with this

#

I have it all filled in on visual studio code

#

@woven sundial

copper cradle
#

{ type: "STREAMING"}, url: "you need an url" }

west spoke
#

^

copper cradle
#

d.js doesn't support streaming without urls

west spoke
#

^^

#

make a twitch account for ur bot

copper cradle
#

and for the sake of our lord and saviour luigi use === instead of ==

pseudo parcel
#

wait i can give a link

west spoke
#

for?

pseudo parcel
#

twitch link

west spoke
#

not here

#

in the code, for the streaming status

pseudo parcel
#

from dm?

copper cradle
#

y e s

pseudo parcel
#

link

west spoke
#

no I dont wanna be dm'd your nasty twitch

copper cradle
pseudo parcel
#

eh ok.

#

i wont

#

console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Aktif, Komutlar y
üklendi!);
^

SyntaxError: Unexpected token {
at new Script (vm.js:80:7)
at createScript (vm.js:274:10)
at Object.runInThisContext (vm.js:326:10)
at Module._compile (internal/modules/cjs/loader.js:664:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)

#

why is this happening

west spoke
#

that's a string, not text

pseudo parcel
#

ye from console

west spoke
#

console.log(${moment().format('YYYY-MM-DD HH:mm:ss')} +"BOT: Aktif, Komutlar y
üklendi!");

#

I think

#

idk

pseudo parcel
#

wait

#

const chalk = require('chalk');
const moment = require('moment');
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

module.exports = client => {
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Aktif, Komutlar yüklendi!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: ${client.user.username} ismi ile giriş yapıldı!);
client.user.setStatus("LISTENING");
client.user.setActivity( ox!yardım \ ox!davet );
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Oyun ismi ayarlandı!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Şu an + client.channels.size + adet kanala, + client.guilds.size + adet sunucuya ve + client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + kullanıcıya hizmet veriliyor!);
};

copper cradle
#

you're not using a template literal

#

or whatever they're called in english

#

just wrap that thing on ``

pseudo parcel
#

hm so i solve it..

copper cradle
#

why would you use ${} outside of ``

pseudo parcel
#

im just directly downloaded files

copper cradle
#

._.

#

lmao

#

wrap that inside of ``

#

wtf are you doing

#

you can't put text without using "" or '' or ``

#

@pseudo parcel it's easy to fix

#

you're not using strings

#

you have to use strings

#

when you send a message to a channel

pseudo parcel
#

how to use it

copper cradle
#

you wrap the text inside of ""

#

that's a string

pseudo parcel
copper cradle
#

you can't type text like that

#

don't you see it?

pseudo parcel
#

ok lemme see do i understand

copper cradle
#

console.log()

pseudo parcel
#

"const chalk = require('chalk');
const moment = require('moment');
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

module.exports = client => {
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Aktif, Komutlar yüklendi!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: ${client.user.username} ismi ile giriş yapıldı!);
client.user.setStatus("LISTENING");
client.user.setActivity( ox!yardım \ ox!davet );
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Oyun ismi ayarlandı!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Şu an + client.channels.size + adet kanala, + client.guilds.size + adet sunucuya ve + client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + kullanıcıya hizmet veriliyor!);
};"

#

oh.

copper cradle
#

see?

pseudo parcel
#

omg do i stupid?

#

or blind

copper cradle
#

and also

pseudo parcel
#

im cant see.

copper cradle
#

you don't have to use ${} if you're not using s template literal

pseudo parcel
#

wait

#

const chalk = require('chalk');
const moment = require('moment');
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

module.exports = client => {
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Aktif, Komutlar yüklendi!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: ${client.user.username} ismi ile giriş yapıldı!);
client.user.setStatus("LISTENING");
client.user.setActivity(ox!yardım \ ox!davet);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Oyun ismi ayarlandı!);
console.log([${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Şu an + client.channels.size + adet kanala, + client.guilds.size + adet sunucuya ve + client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + kullanıcıya hizmet veriliyor!);
};

copper cradle
#

and on the client.user.setActivity()

pseudo parcel
#

dats first

copper cradle
#

it says ox!yardim

tight heath
#

imagine using code blocks

pseudo parcel
#

afterlimaa told me to change somthng and i did

copper cradle
#

warp that on a string

pseudo parcel
#

on

#

ok

loud salmon
#

@pseudo parcel please use code blocks

pseudo parcel
copper cradle
#

anything that's supposed to be plain text

#

@pseudo parcel no

#

also wrap the \

loud salmon
#

fuk

#

u know what fuck it

copper cradle
#

since \ is supposed to be text

pseudo parcel
#

OH

copper cradle
#

or else you'll get an error

pseudo parcel
copper cradle
#

yes

#

now

pseudo parcel
#

ok

copper cradle
#

fix the rest of the cod

#

if you want to use ${}

#

wrap those in back ticks

#

`

pseudo parcel
#

um

#

you know right?

west spoke
#

@pseudo parcel n++ seriously

pseudo parcel
#

im know 0 thing about codes

tight heath
#

well

west spoke
#

use jedit

tight heath
#

then don't friggin ask here

west spoke
#

for fucks sake

pseudo parcel
#

ok.

tight heath
#

go learn

#

lol

west spoke
#

use jedit

pseudo parcel
#

ok bye.

copper cradle
#

b r u h

tight heath
#

like

#

if your excuse

copper cradle
tight heath
#

is that you're refusing to learn

#

then like

#

weebDance bye weebDance

pseudo parcel
#

bye

#

im trying something.

copper cradle
#

b r u h

pseudo parcel
#

bruh

#

ima go look where i got bot files.

copper cradle
#

b r u h

pseudo parcel
#

im did it

#

😄

opaque eagle
#

They’re called template literals in English @copper cradle

onyx summit
#

Should I run my bot with ts-node or compile it and then execute the compiled js files?
(on prod)

opaque eagle
#

@onyx summit The only real advantage I see with ts-node is getting errors that reference your TS code, not your compiled JS, so it’s worth using in development. In production, I’d recommend node.js since it’s safer. It’s a larger open source initiative with a stronger community which can help fix bugs and patch things better.

onyx summit
copper cradle
#

@opaque eagle b r u h

#

I was guessing the name

opaque eagle
copper cradle
#

nice

#

I guessed the name

#

b r u h

opaque eagle
abstract crow
#

So I am trying to use the Discord OAuth2 system. I got my access token and everything right. I got the guilds. Using Express.JS I need to pass the guilds variable over, but I need to add an element for each guild. I can't use the document variable whilst using <% %>. How can I go around this or fix it?

opaque eagle
#

Use a script tag

abstract crow
#

I am

#
   <script>
      // window.onload = ready;
      window.onload = function() {
<%
          fetch(token).then(data=> {
              return data.json()
          }).then(res=>{
              console.log(res)
          })
                %>
      }




  </script>```
#

I just need to fetch the token url as that is the variable. Besides that everything else is pure js

opaque eagle
#

Prob smth like this <% for (const guild of guilds) { %> <img src="<% guild.iconURL %>"> <% } %>

#

Idk exactly becuz I've never written a dashboard with Ejs before, only with Vue and React

abstract crow
#

<img src="<% guild.iconURL %>"> Expression Expected

opaque eagle
#

Oh

abstract crow
#

Also does Vue or react do something like this? I mean I am not really sure how all of these bot dashboards work and what they use

opaque eagle
#

Vue and React are front-end frameworks... they're completely different

abstract crow
#

How did you make a dashboard?

opaque eagle
#

Also in Ejs, isn't it <%= %>

#

I think u forgot an =

abstract crow
#

Yeah it is

opaque eagle
#

oh

abstract crow
#

That didn't fix it tho RIP

topaz fjord
#

You can do a similar thing in react

opaque eagle
#

Vue and React are hard to grasp at first... it's kinda like making your own HTML tags (in this case they're called Vue/React components which need to be mounted/rendered) but mostly in JavaScript

inner jewel
#

@opaque eagle check if the audit log was created after the member joined

opaque eagle
#

I was under the assumption that people checked if the audit log was sent within a certain time around the guildMemberRemove event

abstract crow
#

@opaque eagle It works! Just can't put that in a script tag lol. My bad. Is this how other bots do it?

inner jewel
opaque eagle
#

I'd guess so, since I don't see how else that could be accomplished with ejs

abstract crow
#

Is EJS good to use for this?

opaque eagle
#

Does the job, I don't see anything wrong with it

#

Out of curiosity what lang is that @inner jewel

inner jewel
#

scala

opaque eagle
#

ok

abstract crow
#

Does anyone know why with the CDN that sometimes when getting the guild's icon it comes up null but for others it comes up normal?

inner jewel
#

default icons?

sage bobcat
#

One message removed from a suspended account.

abstract crow
#

Like guild icons

#

Ooo

#

Good point

#

Do you happen to know how I can circumvent that? And like provide the same thing that Discord does and has the letters of the server?

inner jewel
#

you'll have to render it yourself

abstract crow
#

oof

earnest phoenix
#

i make my bot in androis with discord bot maker android

abstract crow
#

why don't they just make it simple lol. Time to inspect element Discord!

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

i have no pc

abstract crow
#

Maybe he doesn't have one that can host it

inner jewel
#

they just use some css to have the default icons

sage bobcat
#

One message removed from a suspended account.

inner jewel
#

the icon is just text and css

sage bobcat
#

One message removed from a suspended account.

inner jewel
#

it's not even an image

abstract crow
#

Ah gotcha Main

#

Well you can use whatever as long as it isn't DBD or BotGhost

earnest phoenix
#

whut

abstract crow
#

nvm, you can use discord bot maker

warm marsh
#

Does anyone know how I could use node-canvas to make a xp bar?

abstract crow
#

I used to use that

#

That was a year ago tho.

warm marsh
#

You still have xp within your bot?

abstract crow
#

Yes but not with canvas

warm marsh
#

Ok

tight heath
#

imagine using canvas

warm marsh
#

What's better?

tight heath
#

not doing image gen in node

#

because imo that's out of the language's scope

#

and node does suck at imagegen

warm marsh
#

Ok, I only wanted to use image gen because embeds are meh.

tight heath
#

well

#

most of my bot is node

#

except like imagegen

#

lol

#

because node just sucks at it

warm marsh
#

Lol. How do you do image gen then?

abstract crow
#

-bots @tight heath

tight heath
#

or js in general

abstract crow
#

lul

gilded plankBOT
#
Bots <:dblCertified:392249976639455232>

@versed thorndblCertified

abstract crow
#

:dab:

tight heath
#

boi i dont do dbl

#

either way the imagegen is in go

abstract crow
#

is that an ad?

tight heath
#

no

abstract crow
#

🙂

tight heath
#

you literally tried to get my bots

#

you mango

abstract crow
#

lol

#

you legend

tight heath
#

@warm marsh Go, exposing an http server

#

it's more like an imagegen api at that point

#

:p

warm marsh
#

Still within the same PC/vps?

abstract crow
#

I see you like Gitlab. I use github because of the student package but what made you choose gl over gh? Always was on my mind lol

tight heath
#

it runs on 0.0.0.0:3001

warm marsh
#

I'm kinda a noob at that stuff. 😐

tight heath
#

so

#

yes

warm marsh
#

Ok.

tight heath
#

you can run it on a different machine too

#

doesn't make a difference

#

I'll probably bundle it into the aero image soon enough

#

currently its run on a seperate server tho

unreal sedge
#

How do I display emojis in the Windows terminals? I tried chcp 65001 to alter code pages and to adjust within settings.json (in for Visual Studio Code) but the standard emojis show up as a questionmark

tight heath
#

use a font which has them

#

your terminal font probably doesn't support emojis

#

¯_(ツ)_/¯

unreal sedge
#

o. It was like default consolas

warm marsh
#

I don't know GO so I will probably stay away from it.

tight heath
#

been told its not too hard

#

i mean you can always just ask a friend to do it

#

like i did

unreal sedge
#

Go with them pipes is interesting.

inner jewel
#

go isnt hard but you can still have footy shooty code (read: segfault)

abstract crow
#

Is it ok for me to display the discord oauth2 CODE in the URL?

#

Not the access_token, but like the redirect code

inner jewel
#

yes

#

it's sent to the client anyway

#

and it's only useful together with the client secret

abstract crow
earnest phoenix
#

talkedRecently is an array

onyx summit
#

I think direct messages

earnest phoenix
#

i'm pretty sure it's not

onyx summit
#

btw, why so complicated,
message.guild.id would be shorter

earnest phoenix
#

oh didn't know message connect directly to guild

#

ye, im 100% sure i'm getting the error while in a guild channel

#

t.t

#

im trying to implement server specific cmd cooldowns for bot

tight heath
#

did you check tho

#

that msg.guild exists

earnest phoenix
#

pretty sure, otherwise how could i write the message =

#

?

tight heath
#

what

abstract crow
#

Not really

#

But still. Pretty neat for me

earnest phoenix
#

wait what

#

ok works now

#

might be someone dm'ing my test bot or something elsewhere

tight heath
#

vinnie your css is

#

a++

earnest phoenix
#

i put some conditions on top

topaz fjord
#

@tight heath ravy.jar smh

tight heath
#

that's the only thing you're correcting

#

also yeah well

#

if (!msg.guild) return

#

lol

topaz fjord
#

java -jar ravy.jar run ravy.go

#

that works better

tight heath
#

-Xmxmxxmxmxmxxmxmxmxmxmxmxmx

earnest phoenix
#

so, what is an easy check for if a message is in dms or in a guild channel ?

west spoke
#

what lib

#

Async d.py I have a way of checking

neon swift
#

why do people still use that

west spoke
#

because my neko lib depends on it

#

homemade api wont work on rewrite

amber fractal
#

until it gets so outdated and doesnt work then you're mad because you have to rewrite it all at once and users are mad because you didnt have a rewrite ready by the time it happened

sinful lotus
#

whats with async d.py

#

its "async" it shoudnt be that bad if its async do it Thonk

inner jewel
#

async is the old and unsupported version

west spoke
#

I can make API push and GET calls if stuff isnt there

earnest phoenix
#

oh sorry, discord.js @west spoke

sinful lotus
#

yeah but I just want to know why async d.py is frowned upon

west spoke
#

^

#

If its usable its fine

inner jewel
#

because it's been replaced by rewrite

#

it's like using eg d.js v8

#

instead of latest

west spoke
#

and rewrite wont run

#

Idfk why it just doesnt run

#

And when it does, nothing works right

earnest phoenix
#

mkay found this message.guild === null

#

true if dm

sinful lotus
#

naruhoto naruhoto

earnest phoenix
#

-?yardım

#

-?level

opaque eagle
#

No bot commands in this server pleas

lusty dew
#

@opaque eagle lmao

#

"Server”

abstract crow
zealous veldt
#

Stop being good

lusty dew
#

Not bad

abstract crow
#

Thank you 🙂

#

I had some help from a few guys giving me tips

#

But it came out pretty well

lusty dew
#

I know css a little bit lel

#

It just aggravates me a lot so I try to stay away from it

abstract crow
#

lol yep

lusty dew
#

But I gotta do my web dash soon

abstract crow
#

Its so much fun

#

and fucking pain

lusty dew
#

One of the things I wanna release with my next update

abstract crow
#

Same same

#

I mean like I have always wanted to do this thing. I am 14 so I am so proud of myself that I am making a web dashboard that will fully function and integrate with the bot itself. Like REEE

lusty dew
#

Lmao

#

I’m 14 as well so He yo

abstract crow
#

Ayy

lusty dew
#

I just don’t know as much as I would want to

#

My js is shitty

abstract crow
#

It takes time, and I luckily had some time, just not going to be anymore after now going into HS

lusty dew
#

Yea same.

#

My bot development will slow down a bit

abstract crow
#

Yeppers.

#

And like there is so much I want to do its not even funny. I take flying lessons and they are having a ground class every Thursday night and like I WANT TO GO soon. Then I code all the time, and want this project to be done to say I did this ya know.

lusty dew
#

Yea. I understand.

topaz fjord
#

my css best mmLol

lusty dew
#

Lies

abstract crow
#

WRONG.

topaz fjord
abstract crow
#

css sucks

lusty dew
#

Oof advertising?

#

Jkjk

abstract crow
lusty dew
#

That’s proper?

topaz fjord
#

very good

#

it is proper

lusty dew
#

Just capitalization

abstract crow
#

jk lol

#

Looks good 🙂

topaz fjord
#

its supposed to be lower case

abstract crow
#

IT IS A COMMA

lusty dew
#

Nice css

abstract crow
#

lol

topaz fjord
#

its not supposed to have a comma

#

its a title and a subtitle

abstract crow
#

I WANT TO LOG IN

#

No but seriously it looks awesome mate

topaz fjord
#

because im lazy

zealous veldt
#

I need to make a website

lusty dew
#

Oh god that’s a mess

topaz fjord
#

oh yeah

#

i dont care about mobile

lusty dew
#

Fuck you too then

topaz fjord
#

i did mobile css for docs in a rush

lusty dew
#

😂

topaz fjord
#

home page works fine

#

docs doesn't

lusty dew
#

I’d fix that tbh a lot of people do things on phones

#

And what’s with the box with a white outline?

topaz fjord
#

what screen size are u

lusty dew
#

Is there supposed to be a logo

topaz fjord
#

@lusty dew the midle logo

#

idk why it didn't load for u

tight heath
#

okay so

#

ive seen better websites

#

but its okay ig

topaz fjord
#

ravy

#

ty

tight heath
#

not qt

lusty dew
#

Lmao

tight heath
#

i want to note

#

that the only music bot I'll ever need is Groovy

lusty dew
#

I’m hungry ima go eat lmfao

tight heath
#

yes

topaz fjord
#

only thing im proud of is no css framwork for it

tight heath
#

imma go yeet

#

i mean groovy uses a self-made css framework

inner jewel
#

i just write my own music :^)

zealous veldt
#

uwu

earnest phoenix
#

UwU

tight heath
#

im actually currently composing

#

but i suck at it so

inner jewel
#

i meant that as in music code

fading wigeon
#

@tight heath from my experience music quality via groovy aint as good as other bots

loud salmon
#

@fading wigeon say sike right now

fading wigeon
#

sook

loud salmon
#

@hushed berry look at this heathen

hushed berry
fading wigeon
#

lmao

unique nimbus
#

How dare thou abuse nikki

fading wigeon
#

that was probably 2-3 months ago tho

#

so ill gladly try again and see if quality has improved

loud salmon
zealous veldt
#

SAY SIKE

hushed berry
#

it uses like the same player code as every other bot lol

zealous veldt
#

Right now

mossy vine
#

@hushed berry does patreon version have better quality than regular

hushed berry
#

no

#

the patreon deployment itself has higher resource requirements than the normal prod deployment

#

but they literally use the same code

#

and are run on the same machines

mossy vine
#

must be placebo then. when i first tried normal one a few months ago, the audio was quite choppy and not very good quality. when a serevr im in started using patreon a few weeks ago it was a lot better so idk

hushed berry
#

95% of audio issues are caused by discord audio servers 🤷

zealous veldt
#

The other 5% aren't real mmSpun

mossy vine
#

thats a paradox

zealous veldt
#

I know

tough lava
#

Hello

nimble fulcrum
#

Hi, did you eject my bot from the server? Something happened?

hollow fulcrum
#

To see what happened

earnest phoenix
#

Just a little server outage @nimble fulcrum

last ferry
#

so im trying to make a simple mp3 player with ffmpeg, which works perfectly fine on my machine. however, when i move all the files to my windows server and try the command, ffmpeg runs but hangs and doesnt start streaming the audio. i have all the correct dll's and i set the PATH correctly since the command line recognizes it, and ffmpeg doesnt log any errors in the console. any ideas?

nimble sky
#

@tawny rivet

copper cradle
#

why are you using a windows server

last ferry
#

Because I’m lazy

opaque eagle
#

Then you shouldn’t be using Windows server

#

Linux is the OS for the “lazy”

#

It’s so much easier to use than windows server

tight heath
#

@fading wigeon boi we play in the full quality of the audio source

#

i think ur just a mango

#

i mean and constantly people come to us saying "oh this is so much better than rythm" so ig that's the caSE

wheat jolt
#

Linux also doesn't use that many resources than windows

earnest phoenix
#

all audio bots sound the same if the channel bitrate is 8kbps HAhaa

opaque eagle
#

Links to Discord messages are formatted this way, right?```js
https://discordapp.com/channels/${guild.id}/${channel.id}/${message.id}/

earnest phoenix
#

yes

earnest phoenix
#

Hi anyone here good with fetchBans?

opaque eagle
#

When I click on Jump to Message, nothing happens

earnest phoenix
#

I'm trying to get the fetchBans to resolve an array of userID's

#

Can anyone help?

opaque eagle
#

If you have message.guild, why do bot.guilds.find(g => g.id === message.guild.id)

#

bot.guilds.find(g => g.id === message.guild.id) is equal to message.guild

#

Won't help the problem but makes the code better tbh

earnest phoenix
#

Ok thanks for the advice, any ideas how I can get the bans to be an array of userID's?

opaque eagle
#

Collection.map()

#

Collection.map(e => e.id)

#

since Guild.fetchBans() returns Promise<Collection<Snowflake, (User|BanInfo)>>

earnest phoenix
#

do I want bans.map() ?

opaque eagle
#

yeah

wet kite
#

Btw, @opaque eagle

https://discordapp.com/channels/${message.channel.guild.id}/${message.channel.id}/${message.id}

The way you had it before was getting the channel.id which looks to be the log channel id.. (I could be wrong) Shrug

opaque eagle
#

oh yeah

#

thanks lol

unkempt moon
#

Very weird. My bot is still in this server, but apparently it received a guild deletion event about it? Discord bug?

wet kite
#

Most likely DBL was unavailable for your bot..

earnest phoenix
#

no

#

discord had an outage

unkempt moon
#

So that triggers these kind of events as well? Weird

earnest phoenix
#

it might have been sent by accident - eg a bug

#

gateway events behave abnormally when there's an outage

unkempt moon
#

🤷

opaque eagle
#

I don't really have a CS background, so idk this:
If I'm running a process, and I change an env, would that updated env show up in the process?

#

idk how to explain what im asking lol

#

Let's say I'm running this code... If I change FOO in the middle of execution, will it start console.logging the new FOO?js setInterval(console.log, 10000, process.env.FOO);

dusky marsh
#

Only for that process, it should, yes

opaque eagle
#

ok

earnest phoenix
#

I am probably going to kick myself but I'm sorry i can't seem to figure this one out, it's been a long day

opaque eagle
#

Pls don't use var

earnest phoenix
#

if you already can use await

#

why not await fetchbans

#

you're mixing async and sync

opaque eagle
#
  1. Make sure you have a thorough understanding of Promises.
    console.log() is synchronous, no need to await it.
    • If you're already using async/await, why use .then() for Guild.fetchBans()?
  2. Don't use var. It's a legacy keyword that exists only for backwards compatibility.
  3. If you're not going to re-assign msg, use const instead of let.
  4. If you only need the # of people who were banned, not the list of user IDs, consider using bans.size instead.
  5. You're not going to get kicked/banned for asking questions...
lusty dew
#

I don’t think that’s what he meant

#

He said he was gonna kick himself

earnest phoenix
#

Yep fixed it thanks guys

mossy vine
#

does fs not have a method for moving a file?

pseudo parcel
#

what is wrong with my bot.js?

#

itz too long im upload file

mossy vine
#

@pseudo parcel any errors?

pseudo parcel
#

gonna send it

#

im getting that playing thing in bot.js

mossy vine
#

are you following a tutorial/guide?

pseudo parcel
#

no.?

mossy vine
#

so you are writing all of this by yourself?

pseudo parcel
#

oh

#

im got bot files

#

and edited.

mossy vine
#

well its just a warning anyways. it is using a deprecated function

pseudo parcel
#

so

twilit rapids
#

At line 120 you have this:

 client.user.setGame(oyun[random], "https://www.twitch.tv/hiaxy");

Use this instead: https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=setActivity

mossy vine
#

and also make it higher than 2*2500

#

also dont reply to "sa"

pseudo parcel
#

sa is means hi in our language.

#

shortly.

mossy vine
#

yes, but you are replying to an unprefixed message

twilit rapids
#

We know, but bots should... damnit Cyber why are you so fast

mossy vine
#

sorry

twilit rapids
#

:(

mossy vine
#

:(

pseudo parcel
#

its auto message.

#

means hello

twilit rapids
#

Bots responding to an unprefixed messages is a bad idea

pseudo parcel
#

its for hello things

twilit rapids
#

Make it atleast !sa

pseudo parcel
#

nah.

twilit rapids
#

If you plan on adding your bot it here, it might be rejected just for that

pseudo parcel
#

why.

mossy vine
#

it will be rejected for the low wait time between status updates

#

and will be kicked for responding to sa

twilit rapids
#

Yeah that too

pseudo parcel
#

..

#

com my server ill show what is it doing

mossy vine
#

we know what it is doing

twilit rapids
#

I update it every 5 minutes, why would you want to update it every 5 seconds?

mossy vine
#

we literally see your code

pseudo parcel
#

.

#

k

#

2*3000 guud?

sick cloud
#

@opaque eagle hi i got a question for you

mossy vine
#

no

pseudo parcel
#

2*5000?

mossy vine
#

12 seconds is the minimum

twilit rapids
#

2*6000

pseudo parcel
#

done

mossy vine
#

nice

pseudo parcel
#

client.user.setActivity(oyun[random], "https://www.twitch.tv/hiaxy");

#

this ok?

mossy vine
#

yes

pseudo parcel
#

yay

#

really fixed.

#

thx

twilit rapids
#

Update the sa response

#

To !sa

#

Or let it only work in DMs

mossy vine
#

so since my question earlier got buried

#

does fs not have a method for moving a file?

pseudo parcel
#

this is in mc-at too

twilit rapids
#

you can use the fs.rename(oldPath, newPath, callback) method

pseudo parcel
#

what is it

twilit rapids
#

Talking to Cyber

pseudo parcel
#

oh

twilit rapids
#

@mossy vine this could help

mossy vine
#

does that work for moving from one directory to another?

pseudo parcel
#

var random = Math.floor(Math.random()*(oyun.length-6+6)+0);

twilit rapids
#

I'm not sure about that

pseudo parcel
#

what is oyun.lengt doing

#

i cant did anything much

mossy vine
#

it is the length of the array declared as oyun

#

returns a number

#

not retruns

#

it is a number

pseudo parcel
#

how much seconds does is it.

twilit rapids
mossy vine
#

mmm time to pollute the directory with a node_moduels

pseudo parcel
#

um my bot's playing place is now shorter than 12 seconds.

mossy vine
#

code?

pseudo parcel
#
const moment = require('moment');
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

module.exports = client => {
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Aktif, Komutlar yüklendi!`);
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: ${client.user.username} ismi ile giriş yapıldı!`);
  client.user.setStatus("online");
  client.user.setGame(`${prefix}yardım + ${client.guilds.size} sunucu + ${client.users.size} kullanıcı`);
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Oyun ismi ayarlandı!`);
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Şu an ` + client.channels.size + ` adet kanala, ` + client.guilds.size + ` adet sunucuya ve ` + client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + ` kullanıcıya hizmet veriliyor!`);
};```
mossy vine
#

thats not relevant

pseudo parcel
#

why does my this things not ok

#

guys

mossy vine
pseudo parcel
#

thxi

#

omg

mossy vine
#

@twilit rapids would using copyFile and unlink have the same result? (moving the file)

twilit rapids
#

Wouldn't you have the file twice then

#

I guess you can deleted the other one

#

shrug

mossy vine
#

unlink the original one

twilit rapids
#

Could work I guess

mossy vine
#

aight, thanks

pseudo parcel
#
const chalk = require('chalk');
const moment = require('moment');
const Discord = require('discord.js');
const ayarlar = require('../ayarlar.json');

var prefix = ayarlar.prefix;

module.exports = client => {
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Aktif, Komutlar yüklendi!`);
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: ${client.user.username} ismi ile giriş yapıldı!`);
  client.user.setStatus("online");
  client.user.setGame(`${prefix}yardım + ${client.guilds.size} sunucu + ${client.users.size} kullanıcı`);
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Oyun ismi ayarlandı!`);
  console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] BOT: Şu an ` + client.channels.size + ` adet kanala, ` + client.guilds.size + ` adet sunucuya ve ` + client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString() + ` kullanıcıya hizmet veriliyor!`);
};
#

how to set length

twilit rapids
#

What length?

pseudo parcel
#

playing lenth

#

length

#

thats my ready.js

twilit rapids
#

You use .setGame again

#

Use .setActivity

pseudo parcel
#

oh.

#

thx

#

is my bot could get denied bc of this?

#
client.on('message', msg => {
  if (msg.content.toLowerCase() === 'sa') {
    msg.reply('Aleyküm selam,  hoşgeldin! Beni kendi sunucuna eklemek için ox!davet');
  }
});
twilit rapids
#

Yes

pseudo parcel
#

why..

twilit rapids
#

Just make it so it only reacts with a prefix

#

so (a prefix you want)sa

pseudo parcel
#

oof.

twilit rapids
#

e.g. !sa

pseudo parcel
#

but %99 of turkish bots doing same thing

#

half of is doing reacts

twilit rapids
#

And that's 100% bad

pseudo parcel
#

oh.

#

so maybe they added it after bots accepted

mossy vine
#

no

pseudo parcel
#

.

mossy vine
#

the bot wont be rejected because of it

#

but it will be kicked

pseudo parcel
#

kicked?

mossy vine
#

and the bots status will show as ??? on the site

#

removed from the server, but not from the list

pseudo parcel
#

ohhh

#

wait

#

accepted bots are have 7/24?

#
client.elevation = message => {
  if(!message.guild) {
    return; }
  let permlvl = 0;
  if (message.member.hasPermission("BAN_MEMBERS")) permlvl = 2;
  if (message.member.hasPermission("ADMINISTRATOR")) permlvl = 3;
  if (message.author.id === ayarlar.sahip) permlvl = 4;
  return permlvl;
};
mossy vine
#

ideally yes

pseudo parcel
#

any problem about dis.?

mossy vine
#

no

pseudo parcel
#

oh.

#

so how can i delete it without errors

twilit rapids
#

I am starting to question if you coded it yourself

mossy vine
#

he didnt

pseudo parcel
#

no.

#

im can give website.

mossy vine
#

which website

pseudo parcel
#

im downloaded files.

twilit rapids
#

Sure

pseudo parcel
#

from dm?

#

or here?

twilit rapids
#

here is fine

pseudo parcel
#

ok

twilit rapids
#

@mossy vine The every turkish bot base website

mossy vine
#

i was asking for the websie

#

i cant english

pseudo parcel
#

there were a lot of BK Yazılım text. its hard to find.

#
client.on('error', e => {
  console.log(chalk.bgRed(e.replace(regToken, 'that was redacted')));
});

client.login(ayarlar.token);
#

oh and what is this