#development
1 messages · Page 679 of 1
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
U can't have module
@pallid zinc uh u can
move to #memes-and-media cuties
okay a development question why glitch is so bad?
Less than 10 I think
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
Anyone else has problems with having their bot send messages to the announcemnets type channels?
And if so, any ideea for a workaround?
@pallid zinc why? lmao
How to move a voice channel to a category without inheriting category perms? (discord.js)
i dont think its possible in stable, but in master it is
@quartz kindle its possible
@proper inlet you need to set the parent
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 })
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
@stray garnet they do the same with me
@pallid zinc glitch likes me lol
It also like me for 1 week
@urban apex what does it log to the console tho
@stray garnet email/token reset is automatic on too many logins
@urban apex yep
Fakevote exist
Click on Test webhook
how can i change the bots nickname by command?
You will likely need to make a POST request, if the API doesnt support it.
ok
@urban apex what lib are you using
javascript
You can create a custom command to do it, or run an eval
That's a lang
everyone uses discord.js these days though
You cannot change the bot's nickname on the site of DBL
okay and what is the command/code?
<User>.setNickname("New Nickname")
i try to make a Fakevote xD
Yeah because those are experienced coders
Every new dev uses discord.js
because it's the first result when you google search "how2makediscordbot"
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

hello
hi
how can I get bot developer?
Get your bot approved on the website
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"?
You sure it's that line
yes
add \n between them
join the array with \n
I'm pretty sure that will work
cuzz he can't make requests or is lazy
No
no
.map(...).join('\n')
you're uploading an array
not a string
.join joins the elements of an array into a string
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
Anyone here that has 2mins of time to help with quick single line of code in discord JS?
How should I save user uploaded files?
I thought about converting MP3 to opus to get rid of metadata, does that make sense?
what
what part wasnt understandable?
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?
Yeah you can use some converter that can handle multiple file types
And convert everything to a single preset
what format would you recommend to convert to?
I think mp3 is pretty good at trading quality with storage space, but i havent worked with opus yet, it might be good too
but having metadata is bad, no?
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
Yes, so probably opus?
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
problem in node console? look in backend code. problem in web console? look in frontend code
Uhh ehhhhhh #memes-and-media please
Did you see my message or not
sry
Does anyone know how to have Sentry and the console? Sentry disables my local console
lol
@abstract crow you mean, the regular console? That's not true for me, I have sentry and my normal console logs
Yeah the regular node console
As soon as I remove the sentry init and stuff, I can actually see what is going on
This user has no bots
Not the correct channel for that...
there isnt a right channel for that anymore 
#memes-and-media yeet
Well, but offtopic would fit best
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*
@abstract crow are you trying to forward or make your own mailing system for yourself
The issue is, is that I set the hostname to mail.vinniehat.tk right, and then set everything up. Then when it works, instead of it being mail.vinniehat.tk to access it, it goes to vinniehat.tk and scratches the whole entire website, not to mention the email is x@mail.vinniehat.tk
How do I fix this error
I'm trying to get my bot to stay online but it's not working it just stays offline
don't use free hosting
it says the error right there
starting here https://discordapp.com/channels/264445053596991498/325648177178869760/612848321543012352 @earnest phoenix
read down
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?
except copyright infringement and piracy (which almost every single one of music bots on discord do), nothing to worry about
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.
@grim aspen I didn't ask what the problem was. I asked if anyone knows how to fix the error
So what am I supposed to do delete it
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
'''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: " ?
completely broken code
just answer my question please
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"
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
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
@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.
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
you make requests to the api with it
authorization header needs to be formatted as Bearer <accesstoken>
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?
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?
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
hm, I have something like this:
where I use the 👍 in my code and I log the emoji.
Oh, I'm working on Windows 10.
Anyone know a tool that lets you automatically download github code upon a push and execute the console to host itn
use git hooks
Also that task is so simple, you could easily write your own tool that does that
in like half an hour
The thing is, it's on a friends computer
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
So I want it to be as streamlined as possible
yes
@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)?
I guess it is possible if I could contain all the code into a file I could just send him
No need to tag me, I'm not sure
oh sorry.
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);```
@unreal sedge ```
In your settings.json:
{
"terminal.integrated.env.windows": {
"LC_ALL": "C.UTF-8"
}
}```
And just make ur github repo send hooks to ur server in ur repo settings
- instead of
node <file>just donodemon <file>
and you'd be all set tbh
If you want a less DIY solution, try ur luck with git hooks:
https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks
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?
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
Oh, sorry misunderstood what nodemon did
But yeah seems about what I'm looking for, hope my friend gets around to install git
One more solution... instead of writing a webhook server, you could just set your server as a remote and push to it
Huh, how would I push directly to the remote ?
git push <remote name> <branch>
Hello
hey i so need help
i have UnhandledPromiseRejectionWarning: Unhandled promise rejection. error
@brazen ocean
why error send
@brazen ocean
Show the code
which code?
?
Show me what is in your event folder
but my bot's playing or text thing is in bot.js
im did it a lot and nothing does
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!);
};
done
Try now 
Working? @pseudo parcel
What?
24/7
yup
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 👌

just don't terminate your console and ur bot stays online
dont close your console
so shortly dont close ur console
ye
ok.
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
If you're using the discord.js library, read that https://discord.js.org/#/docs/main/stable/class/Guild?scrollTo=unban
@main karma
thanks
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)
https://dblpy.readthedocs.io/en/latest/ did you read that?
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 😃
cc @bitter sundial
how is it wrong
How do you peeps use audit logs for mod logs on kick? Discord.js/Eris (either is fine)
ne diyon oç
https://discord.js.org/#/docs/main/stable/class/Guild?scrollTo=fetchAuditLogs and filter the action
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
Lib?
It takes a guild member...

Just give it your client's id
And if you dont want it as a bitfield
That's for guild
I thought you said for channel
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
{ type: "STREAMING"}, url: "you need an url" }
^
d.js doesn't support streaming without urls
and for the sake of our lord and saviour luigi use === instead of ==
wait i can give a link
for?
twitch link
from dm?
y e s
link
no I dont wanna be dm'd your nasty twitch

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
that's a string, not text
ye from console
console.log(${moment().format('YYYY-MM-DD HH:mm:ss')} +"BOT: Aktif, Komutlar y
üklendi!");
I think
idk
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!);
};
you're not using a template literal
or whatever they're called in english
just wrap that thing on ``
hm so i solve it..
why would you use ${} outside of ``
im just directly downloaded files
._.
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
how to use it
ok lemme see do i understand
console.log()
"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.
see?
and also
im cant see.
you don't have to use ${} if you're not using s template literal
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!);
};
and on the client.user.setActivity()
dats first
it says ox!yardim
imagine using code blocks
afterlimaa told me to change somthng and i did
warp that on a string
@pseudo parcel please use code blocks
since \ is supposed to be text
OH
or else you'll get an error
ok
@pseudo parcel n++ seriously
im know 0 thing about codes
well
use jedit
then don't friggin ask here
for fucks sake
ok.
use jedit
ok bye.
b r u h

b r u h
b r u h
They’re called template literals in English @copper cradle
Should I run my bot with ts-node or compile it and then execute the compiled js files?
(on prod)
@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.

I just wanted to assure u that u were right...
Can someone help me with this
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?
Use a script tag
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
https://vinniehat.is-inside.me/ytl6nKtJ.png Example. I know its the most known bot but Mee6. There is an element for each guild that I am in. How do they do something like this?
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
<img src="<% guild.iconURL %>"> Expression Expected
Oh
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
Vue and React are front-end frameworks... they're completely different
How did you make a dashboard?
Yeah it is
oh
That didn't fix it tho RIP
You can do a similar thing in react
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
@opaque eagle check if the audit log was created after the member joined
I was under the assumption that people checked if the audit log was sent within a certain time around the guildMemberRemove event
@opaque eagle It works! Just can't put that in a script tag lol. My bad. Is this how other bots do it?
this is what i do
I'd guess so, since I don't see how else that could be accomplished with ejs
Is EJS good to use for this?
Does the job, I don't see anything wrong with it
Out of curiosity what lang is that @inner jewel
scala
ok
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?
default icons?
One message removed from a suspended account.
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?
you'll have to render it yourself
oof
i make my bot in androis with discord bot maker android
why don't they just make it simple lol. Time to inspect element Discord!
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i have no pc
Maybe he doesn't have one that can host it
they just use some css to have the default icons
One message removed from a suspended account.
the icon is just text and css
One message removed from a suspended account.
it's not even an image
whut
nvm, you can use discord bot maker
https://vinniehat.is-inside.me/kpuhEE4u.png Eee I am getting there!
Does anyone know how I could use node-canvas to make a xp bar?
You still have xp within your bot?
Yes but not with canvas
Hey, all! Here I continue with my previous live stream working with Canvas and Node.js in a Discord.js bot. I will attempt to take data from a JSON API and d...
Ok
imagine using canvas
What's better?
not doing image gen in node
because imo that's out of the language's scope
and node does suck at imagegen
Ok, I only wanted to use image gen because embeds are meh.
well
most of my bot is node
except like imagegen
lol
because node just sucks at it
Lol. How do you do image gen then?
-bots @tight heath
or js in general
lul
:dab:
is that an ad?
no
🙂
@warm marsh Go, exposing an http server
it's more like an imagegen api at that point
:p
Still within the same PC/vps?
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
it runs on 0.0.0.0:3001
I'm kinda a noob at that stuff. 😐
Ok.
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
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
use a font which has them
your terminal font probably doesn't support emojis
¯_(ツ)_/¯
o. It was like default consolas
I don't know GO so I will probably stay away from it.
been told its not too hard
i mean you can always just ask a friend to do it
like i did

Go with them pipes is interesting.
go isnt hard but you can still have footy shooty code (read: segfault)
Is it ok for me to display the discord oauth2 CODE in the URL?
Not the access_token, but like the redirect code
yes
it's sent to the client anyway
and it's only useful together with the client secret
Ok. So I can run url.com/code=blah?
sorry, but does anyone have an idea what causes this error ?
talkedRecently is an array
I think direct messages
i'm pretty sure it's not
btw, why so complicated,
message.guild.id would be shorter
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
what
Ahhhh it looks awesome! https://vinniehat.is-inside.me/MlHOFO8E.png
Not really
But still. Pretty neat for me
wait what
ok works now
might be someone dm'ing my test bot or something elsewhere
i put some conditions on top
@tight heath ravy.jar smh
that's the only thing you're correcting
also yeah well
if (!msg.guild) return
lol
-Xmxmxxmxmxmxxmxmxmxmxmxmxmx
so, what is an easy check for if a message is in dms or in a guild channel ?
why do people still use that
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
async is the old and unsupported version
oh sorry, discord.js @west spoke
because it's been replaced by rewrite
it's like using eg d.js v8
instead of latest
and rewrite wont run
Idfk why it just doesnt run
And when it does, nothing works right
naruhoto naruhoto
No bot commands in this server pleas
@tight heath So you said my CSS was a++ right? https://vinniehat.is-inside.me/A2GRRTzv.png
Stop being good
Not bad
Thank you 🙂
I had some help from a few guys giving me tips
But it came out pretty well
lol yep
But I gotta do my web dash soon
One of the things I wanna release with my next update
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
Ayy
It takes time, and I luckily had some time, just not going to be anymore after now going into HS
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.
Yea. I understand.
my css best 
Lies
WRONG.
https://turtle-bot.com proves it
css sucks
Nice grammar https://vinniehat.is-inside.me/4yy8M3v7.png
That’s proper?
Just capitalization
its supposed to be lower case
IT IS A COMMA
lol
because im lazy
I need to make a website
Fuck you too then
i did mobile css for docs in a rush
😂
I’d fix that tbh a lot of people do things on phones
And what’s with the box with a white outline?
what screen size are u
Is there supposed to be a logo
not qt
Lmao
I’m hungry ima go eat lmfao
yes
only thing im proud of is no css framwork for it
imma go yeet
i mean groovy uses a self-made css framework

i just write my own music :^)
uwu
UwU
i meant that as in music code
@tight heath from my experience music quality via groovy aint as good as other bots
@fading wigeon say sike right now
sook
@hushed berry look at this heathen

lmao
How dare thou abuse nikki
that was probably 2-3 months ago tho
so ill gladly try again and see if quality has improved

SAY SIKE
it uses like the same player code as every other bot lol
Right now
@hushed berry does patreon version have better quality than regular
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
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
95% of audio issues are caused by discord audio servers 🤷
The other 5% aren't real 
thats a paradox
I know
Hello
Hi, did you eject my bot from the server? Something happened?
Just a little server outage @nimble fulcrum
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?
@tawny rivet
why are you using a windows server
Because I’m lazy
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
@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
Linux also doesn't use that many resources than windows
all audio bots sound the same if the channel bitrate is 8kbps 
Links to Discord messages are formatted this way, right?```js
https://discordapp.com/channels/${guild.id}/${channel.id}/${message.id}/
yes
Hi anyone here good with fetchBans?
I'm trying to get the fetchBans to resolve an array of userID's
Can anyone help?
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
Ok thanks for the advice, any ideas how I can get the bans to be an array of userID's?
Collection.map()
Collection.map(e => e.id)
since Guild.fetchBans() returns Promise<Collection<Snowflake, (User|BanInfo)>>
do I want bans.map() ?
yeah
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) 
Very weird. My bot is still in this server, but apparently it received a guild deletion event about it? Discord bug?
Most likely DBL was unavailable for your bot..
So that triggers these kind of events as well? Weird
it might have been sent by accident - eg a bug
gateway events behave abnormally when there's an outage
🤷
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);
Only for that process, it should, yes
ok
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
Pls don't use var
if you already can use await
why not await fetchbans
you're mixing async and sync
- Make sure you have a thorough understanding of Promises.
•console.log()is synchronous, no need toawaitit.
• If you're already using async/await, why use.then()forGuild.fetchBans()? - Don't use
var. It's a legacy keyword that exists only for backwards compatibility. - If you're not going to re-assign
msg, useconstinstead oflet. - If you only need the # of people who were banned, not the list of user IDs, consider using
bans.sizeinstead. - You're not going to get kicked/banned for asking questions...
Yep fixed it thanks guys
does fs not have a method for moving a file?
@pseudo parcel any errors?
are you following a tutorial/guide?
no.?
so you are writing all of this by yourself?
well its just a warning anyways. it is using a deprecated function
so
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
yes, but you are replying to an unprefixed message
We know, but bots should... damnit Cyber why are you so fast
sorry
:(
:(
Bots responding to an unprefixed messages is a bad idea
its for hello things
Make it atleast !sa
nah.
If you plan on adding your bot it here, it might be rejected just for that
why.
it will be rejected for the low wait time between status updates
and will be kicked for responding to sa
Yeah that too
we know what it is doing
I update it every 5 minutes, why would you want to update it every 5 seconds?
we literally see your code
@opaque eagle hi i got a question for you
no
2*5000?
12 seconds is the minimum
2*6000
done
nice
yes
you can use the fs.rename(oldPath, newPath, callback) method
what is it
Talking to Cyber
oh
@mossy vine this could help
does that work for moving from one directory to another?
var random = Math.floor(Math.random()*(oyun.length-6+6)+0);
I'm not sure about that
it is the length of the array declared as oyun
returns a number
not retruns
it is a number
how much seconds does is it.
This looks like what you need
mmm time to pollute the directory with a node_moduels
um my bot's playing place is now shorter than 12 seconds.
code?
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!`);
};```
thats not relevant
@twilit rapids would using copyFile and unlink have the same result? (moving the file)
Wouldn't you have the file twice then
I guess you can deleted the other one
shrug
unlink the original one
Could work I guess
aight, thanks
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
What length?
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');
}
});
Yes
why..
oof.
e.g. !sa
And that's 100% bad
no
.
kicked?
and the bots status will show as ??? on the site
removed from the server, but not from the list
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;
};
ideally yes
any problem about dis.?
no
I am starting to question if you coded it yourself
he didnt
which website
im downloaded files.
Sure
here is fine
ok
Merhabalar bu konumda Discord bot yapımını göstereceğim. İlk olarak buraya tıklıyarak node.js indiriyoruz. Daha sonra komut dosyalarımızı daha kolay editlemek için Notepad++
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

bye



