#development
1 messages · Page 1529 of 1
yes i have used it before but i have never used linux before i hope i have no difficulty
this might work
2012 R2
Anyone have idea about how a bot website is made? 
yes sir đ
depends what kind of a website
I tried others and they are bad 2016 2019 vs
+1
Music Bot
Buy premium
Commands
2016 is soo bad
simpler to use than others (for people who have never used linux)
linux is simple enough
for people who have never used linux.
you can learn how to work linux within 10 minutes
windows server is slow
you often pay for it more aswell
realistically you would use it only if you were dependent on win32 apis
Besides, since the features of the computer have not changed, I don't think it will make much difference.
Hi, I have an issue with my message event. For some reason, my message event doesn't trigger until up to 4 seconds after the message has been sent, and I'm really confused as to why, can anyone help?
worst option ever
why would you pay for a server os in the first place
just use linux like 99% of all servers I know do
is ur script blocking?
or something
it just happens randomly
could be when you use multiple await statements
or simmilar
but im generally stupid so don't judge me too hard
hey guys
i just got a message from Discord.
they told me that they had reset my bot token as it made 1000 api calls to discord.com
what may be the issue? It's just a normal moderation/music bot.
Takes 5ms for the message event to get through and run the cmd, and its triggered 4.9s later
Whatever that means
right im making a website
woooo
i want to show the content of a dropdown if the screen is wide enough but put it into the dropdown if its not wide enough
Are you coding it or did you use a website?
im making it with html
Ohh, visual studio code?
yeah, but you can generally use any text editor
css media queries
hey guys
i have this txt file
i want to add usernames to the list.
how would i do that?
by command. For example: !add Awsome, will add my name on spot number 1.
reading docs hold on
so uh I don't know if this is a djs-light issue, or if its discord or my code, but everything is seemingly random (those numbers are how long the message event takes to trigger)
how are you measuring those
Date.now() - message.createdTimestamp
in a client.on("message")?
yes
do it like this
No it is taking 5s for the event to trigger
Each command is taking about 5s and I don't know why
client.on("raw", packet => {
if(packet.t === "MESSAGE_CREATE") {
console.log(Date.now() - packet.d.timestamp)
}
})
console.log packet.d
ah they send the timestamp like that
Date.now() - new Date(packet.d.timestamp).getTime()
https://alebot.is-inside.me/pVmroBLi.gif thoughts?
Tried on a vps and locally
hey i am in need of some help
still, its taking that amount of time for the packet to go from discord to your pc
nothing you can do about that
hello does anyone know how to make discord bot join voice channel by id in discord.py
?
check the docs for how to get a channel
likely client.get_channel()
or something
show code
okay
this is my local, from Portugal
definitely a network issue on your side
user_voice_channel = bot.get_channel(some_id_here)
if user_voice_channel != None:
vc = await user_voice_channel.connect()```
oh
@quartz kindle do you see a problem with my code
hey
do you have the latest discord.py?
let me check
umm, I'm confused
could ```js
0|index | Loading command volume
0|index | Loading command w-filters
0|index | Client disconnect occured at 01-16-21 | 01:17:44 PM.
0|index | Unhandled Rejection:
0|index | Error: Incorrect login details were provided.
0|index | at WebSocketConnection.<anonymous> (/root/moderationklaar/node_ modules/discord.js/src/client/ClientManager.js:48:41)
0|index | at Object.onceWrapper (events.js:421:26)
0|index | at WebSocketConnection.emit (events.js:314:20)
0|index | at WebSocketConnection.onClose (/root/moderationklaar/node_modu les/discord.js/src/client/websocket/WebSocketConnection.js:390:10)
0|index | at WebSocket.onClose (/root/moderationklaar/node_modules/ws/lib /event-target.js:124:16)
0|index | at WebSocket.emit (events.js:314:20)
0|index | at WebSocket.emitClose (/root/moderationklaar/node_modules/ws/l ib/websocket.js:191:10)
0|index | at TLSSocket.socketOnClose (/root/moderationklaar/node_modules/ ws/lib/websocket.js:850:15)
0|index | at TLSSocket.emit (events.js:326:22)
0|index | at net.js:675:12
my bot is online but it doesn't do anything
do they mean bot token?
I have pretty decent speeds
cuz that is the only thing that has to do with login details
likely yes
its 184mbits either way
bandwidth and latency are different things
1|index | Error: Cannot find module '../events/guildDelete'
1|index | Require stack:
1|index | - /root/moderationklaar/util/eventLoader.js
1|index | - /root/moderationklaar/index.js
1|index | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
1|index | at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:61:29)
1|index | at require (internal/modules/cjs/helpers.js:74:18)
1|index | at rEvent (/root/moderationklaar/util/eventLoader.js:1:27)
1|index | at Client.<anonymous> (/root/moderationklaar/util/eventLoader.js:8:34)
1|index | at Client.emit (events.js:314:20)
1|index | at GuildDeleteHandler.handle (/root/moderationklaar/node_modules/discord.js/src/client/websocket/packets/handlers/GuildDelete.js:9:32)
1|index | at WebSocketPacketManager.handle (/root/moderationklaar/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
1|index | at WebSocketConnection.onPacket (/root/moderationklaar/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
1|index | at WebSocketConnection.onMessage (/root/moderationklaar/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17) {
1|index | code: 'MODULE_NOT_FOUND',
1|index | requireStack: [
1|index | '/root/moderationklaar/util/eventLoader.js',
1|index | '/root/moderationklaar/index.js'
1|index | ]
1|index | }
```wtf?
everything is in my file
hold on turns out that something is up with it
?
not talking to you
owh lmao
PM2 | App [index:1] exited with code [1] via signal [SIGINT]
PM2 | App [index:1] starting in -fork mode-
PM2 | App [index:1] online
wtf
why is it in fork mode
is it fucking hijacked or something
what
yeah uhmm
look at the above
what happened to my bot
it is only but does not respond anymore
Tim I checked the latency as well, its fine
@pale vessel
@quartz kindle it also works fine with my testing bot, which has exactly the same code
How bot handle loads?
My bot was crashed today due to many people were using it at a moment
can someone please help me
/root/.pm2/logs/index-error.log last 15 lines:
0|index | at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:61:29)
0|index | at require (internal/modules/cjs/helpers.js:74:18)
0|index | at rEvent (/root/moderationklaar/util/eventLoader.js:1:27)
0|index | at Client.<anonymous> (/root/moderationklaar/util/eventLoader.js:8:34)
0|index | at Client.emit (events.js:314:20)
0|index | at GuildDeleteHandler.handle (/root/moderationklaar/node_modules/discord.js/src/client/websocket/packets/handlers/GuildDelete.js:9:32)
0|index | at WebSocketPacketManager.handle (/root/moderationklaar/node_modules/discord.js/src/client/websocket/packets/WebSocketPacketManager.js:105:65)
0|index | at WebSocketConnection.onPacket (/root/moderationklaar/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:333:35)
0|index | at WebSocketConnection.onMessage (/root/moderationklaar/node_modules/discord.js/src/client/websocket/WebSocketConnection.js:296:17) {
0|index | code: 'MODULE_NOT_FOUND',
0|index | requireStack: [
0|index | '/root/moderationklaar/util/eventLoader.js',
0|index | '/root/moderationklaar/index.js'
0|index | ]
0|index | }
why can't it find the two modules? It is literally in my bot folder
fucking
my bot works again
out of the fucking nothing
wtf is this?\
it randomly stopped working and then worked again...
is that the issue of my vps?
What code editor are you using?
i am using vsc
but i have put my bot on my vps already.
so it couldn't be my vsc.
Happens some time, bots sometimes die randomly but not hat much
it just randomly stopped working on the vps and then out of the nothing it worked again..
Yep, happens with me
yeah first time happening so i was freaking out as i just reached 10k bot users.
usersđmeansđnothing
Guys whatâs the problem?
Yeah it is about the servers.
Guys?
could you bin your code?
Aw..
i-
Sure..
hm
Cant send hastebin not working but hereâs the code
const { Client, MessageEmbed } = require("discord.js");
var eco = require(quick.db);
const ms = require ("ms");
module.exports = {
name: "give",
staff: true,
/**
* @param {Message} Message
* @param {string[]} args
*/
run (message, args) {
const coins = args[0];
args.splice(0, 1);
const people = message.guild.member(message.mentions.members.first() || message.author);
let balance = eco.fetch(user.coins)
eco.add(`user.coins_${people.user.id}`, coins)
let embed = new MessageEmbed()
.setColor("426795")
.setDescription("Gave: đȘ " + coins + " bitcoins to " + `<@${people.user.id}>`)
.setTimestamp();
return message.channel.send(embed)
}
}
shards
What about me?...
hey btw where did you learn how to make economy bots
bcz I just started
so thats why
Ye..
if I fetched a member in djs, would this fetch the presence as well (provided that the presence intent is on)
Yes I have heard about this thanks for the Answer
I am using djs-light, presences are off
okay so maybe shards isnt the best option
ah
Can someone help?
Than?
maybe its because the bot is just taking time to load the command
u r server specs?
is it suppose to send an image or something ? @wanton knoll
Why is that doing this itâs not giving anything
i mean host
I don't have server
WHAT ABOUT ME?
It is music bot
Yes
what is the withPresences option
It's an option for members.fetch()
o
just wait
Ok
it seemed to have come anyway
@wanton knoll maximum do that it will send a message that its taking some time and that they got to wait
Ohh got it
Bruh people just ignoring me
ignore

this code is wrong
Whatâs wrong?
@earnest phoenix
constant people and coins
want me to help fix it?
See
Sure*

rovi progress on darling c ganyu
_<
cmon
oh
ive changed how i add them
because i created a database of animes and characters with names, nicknames, and i will add the japanese name
so it searches from that then gets the fp of an image
and they are all just in dir/anime/images/ 
pog
@earnest phoenix thanks!
And uh itâs line 13-16 right?
@earnest phoenix
Where do I replace it itâs 13 to 16 I replace it right?
Yes, so do I remove 13-16 and replace it with that?
Or is it 15
Alrighty thanks!
@earnest phoenix not working
Yes...
Lol
Alr, are you sure it works?
@earnest phoenix needs to be args[1] because args[0] is the mentions
whats wrong with it?
whats the error
message.mentions.members.first()
and flip it
whats the new error
show the error
that just shows it loading the commands
iirc .setColour should have the # symbol?
Thatâs the only thing itâs showing
No itâs not the set color it can break a whole command lol
not the main reason here tim lol
@earnest phoenix
man
i sent the plexidev support server
ask them in quick.db channel
they will help you
@tardy hornet can ya send it again?
Thatâs nothing in one I have 12k+
i just did
I canât see it..
Ohh LOL
Thanks!
hello
i am looking for bot who can give me this security
like this verification should come so which bot is this
This is not a bit this is a welcome screen in Discord
spelling of color is wrong and also yes
@earnest phoenix still it canât effect a full command
And I fixed it
noice
well if you fixed the command congrats
imma head out
Didnât fix it Lol
did someone here wrote a eval command using piston? it sounds promising for having a public eval command since it uses an Sandbox code execution engine API
@lusty quest why do you want to bamboozle people
what is the purpose for a bot that just runs code
How do I open a website on a virtual machine using ejs
just ejs or do you have a different http server like express?
i can see website with localhost:3000
like you wanna call a request , scarpe it or like screenshot ?
or maybe as an api ?
you want to attach a domain to your site right ?
yes
i want to use virtual machine for host
okay, that's fine
i have a virtual machine
its not local?
can i open screenshare?
okay,
if you use GoDaddy for domain you can simply redirect it to your IP address : port
it's easy to setup
if you want to use nameservers you can do that too
why dont we just use nginx so that you dont expose your port at the domain level
I could not explain what I wanted to do
every domain uses ns
yeah ik
I use nginx, cloudflare and certbot
and now i open localhost:3000
u can get ssl from cloudflare tho
get to where you got your domain from
Good vm
hostinger
but im using cloudflare for dns
generally better to have a signed cert at all levels
do you have SSL ?
and i can see my web
yes
i agree
How do I connect this to the domain?
use nginx or apache
i use ejs for code this site
whats that
How many GB of ram your computer has
signed certs are easy to get
How many GB of ram your computer has
8
good enough then
okay im downloading
that's still good tho
How to download and install NGINX web server on Windows 10/8/7
===============================
These are my favorite tools that I use to find easy to rank keywords, spy my competitors, and host my affiliate websites for speedy page load. These are my affiliate links with extra cost to you, however I get commission when you subscribe to the...
or if someone else can explain
lol install docker and run it on linux with 2 commands
since i don't use windows, i'll just refer them to this video
are you serious?
he's using windows
yeah
actually docker could work on windows
if im not wrong
can't even open a simple minecraft game
docker runs linux container on the linux kernel even on windows
let me install this
also got now WSL2 support
Java minecraft is coded really inefficent, if you get bedrock it will run better
the latest versions of minecraft on 4gb ram isn't easy to run
are you kidding me ?
a raspberry pi can run Minecraft fine
My host gave BSOD error while the virtual machine was also running a virus test. :D
if he got no Dedicated GPU he got only 4GB ram
but if I have a 1.50 GHz intel processor, it can't work
i where running a few Docker Container on an Turion N40L its maybe even worse than your intel one
also depending what RPI he got its possible that the CPU runs at 500Mhz
how do you make a music bot
but the processor has 2 cores and I have a computer that says no graphics card.
Idk
like what packages do i need in js and stuff
so yea you got then 4GB usable ram
i write in node.js
better google it, no one will babysit you here throu it
yes but 3.71 can be used
someone would know
oh Anyone want to try my bot?
But I have to warn you because I am a Turk and I coded it as Turkish
use a alt account
:D
Me?
yes
Why?
bcs of this?
no Advertising
Oh sory
nah it's okay
Unfortunately I did not understand
oh sh*t my bot gave an error
It may sound silly but what time is it
My clock is wrong
well since this server here is international someone will answer 1:51
is it night?
for someone yes
8:52 for me
it is for me
hello guys youtube keeps banning my ip, i suppose it's because im doing way too many requests for ytdl
do you know any fix?
i've thought to download for the first time the audio, and playing the song from an audio file the following times
but it wouldn't scale very well, and it would limit song duration
and groovy seems to be using youtube api a lot, as it is in a lot of servers and there are lots of people using it
do you know any fix?
yeah, thats another option
caching the song instead of downloading it to a file
it would reduce a bit the number of requests
There is problem in Max listeners
require('events').EventEmitter.defaultMaxListeners = 25
I removed this related all parts
But now I am getting this message
max listeners limit reached and now it is set to 11
Should I change the Max listeners to any highest digit number (for example: 10,000 something)
Than I need to find again
actually you can try spoofing
We basically use that tech to ||scam|| people ||like pishing traps|| but it is useful for getting ahead of IP bans
At least better than VPS proxies
Hi guys, I need help for stock management in e-commerce platform. Let's think we have one product and this product have only 1 stock. 2 customer add this product to their cart and they went through payment section. One of them paid and bought the product. After this one, how can I avoid sell this product other customer? If you have an idea please tag me or dm me. Thanks đ
Addition: Note that: other customer is already in the payment section
Well, a decrementing amount attached to the product would make sense
Yeah but there is something difficult to catch i edited my message
Note that: other customer is already in the payment section
Well, the payment hasn't happened yet, has it?
When customer clicks "pay" button, I can request API and check stock maybe? Is it the best idea
Yeah, one of the customer has bought the item
Other was in payment section
Other one hasn't paid yet
The question is actually the other one should not payable
Yeah, when "Pay" is pressed, send a request to the API and see if the product is available
I think that is the best option but I asked because maybe there is another ideas better than my idea
you can also mark an item as "reserved" for a specific amount of time
which is what booking platforms do
Nah, i dont want to reserve item because the customer who has bought in my scenario maybe abandon ordering
the customer wont see its reserved, they will see its out of stock, like the other method
just at an earlier stage
instead of at the end
with js, how can i change an html style thing?
like onclick call func
and how can i change the div's background or whatever?
you can check it in this section
basicly: you will select div by class or id and just use .style
someElement.style.backgroundColor = "someColor";
oh
u big brain
does it affect the other stuff in the style tag?
it does it just add it?
It just adds
I'm so confused right now
trying to set up a new domain with cf and nginx but it just doesn't want to work
basic rundown is
ahh yes nginx, if you know how it works is nice otherwise its hell
new domain: https://cygrind.xyz/
where is the issue?
the issue is that after i removed all records for the old domain (and the config on my server) it throws that the dns can't be found
did you set the DNS record?
the old domain is off of cloudflare and has no A records
yeah
did the nameserver picked up everything?
yeah cf registered that it was there and everything
can you go to the domains and tell me what you see
did this resolve?
the ale-bot one?
yes
go there again
now it works
im crying right now
clear your dns
cmd -> ipconfig /flushdns
clear your browser cache
then change dns provider
pain
but its says it successfully flushed
yea just saw
how do i change providers
go to network adapter settings
in your wifi/ethernet adapter options
i think i've got an problem
const stars = fetch.find(m => m.embeds[0].footer.text.startsWith('â') && m.embeds[0].footer.text.endsWith(message.id));
``` working on a starboard and it throws
```Cannot read property 'footer' of undefined```
ah got it
seems like embeds[0] is undefined... what if you log it to the console and look what's not working there?
oh right, time to check it
anyone know what this means
the discord dev server can help more.
https://discord.gg/discord-developers
h u h
i have the static dir set up and called but it won't load styles and images from it
app.use(express.static("public"));
public is a directory btw
do i need it to be absolute?
yes
and how do you reference it in the html file
as style.css
where's the html file
I want my bot to create a role and then assign it to a member. I know how to create a role and how to assign it when knowing it's id, but when the bot creates a role I won't know the id. How can I do it?
you can get the object with the create function iirc
very confused because this was working locally
const role = guild.createRole() (idk never used the role creation thing)
brain do you have an idea?
i suck at frontend stuff, and still havent finished any website to be worth getting puplished
feck
yeah i have that
idfk then LOL

*discord fucked the bot for fun
I am dead now, I wasted 2 hours just to find a stupid line which gives my bot error and still I can't find
at this point i usually suggest to take a break.
I assume the stacktrace doesn't point to anything useful or you don't have one
I am going to sleep now

I'm trying to improve the UI/UX of my bot. What version of this command do you guys think would be best?
Simple - https://i.turbo.ooo/hIRI6/rEnAbihO66.png
Everything present - https://i.turbo.ooo/hIRI6/jisaxiCO10.png
Paginated - https://i.turbo.ooo/hIRI6/viCAmidA58.gif
CF cache?
last one is best for me
also 404
cloudflareâs fucked me like that a lot
any idea on how to fix
purge cache
set Cloudflare to developer mode, then it will not cache
not work
im on dev mode
gg then
weird
develop from local host
i am
it works locally
try and access /style.css btw
it weirdly throws a nginx 404 and not a cannot GET
try the answer
now both are 404ing
both?
logo and style
is it possible to extend <Message>.guild using discord.js
yeah
using Structures.extend?
you can do Guild.prototype
ah ok
I want to buy a domain name (either .xyz or .dev) do you guys know good (cheap ?) domain providers that also feature free ssl cert ?
You can get free ssl certs with letsencrypt
or cloudflare
superbrain its not working
yeah and for domain use namecheap
thanks alot
im still not a web dev, and tryed to help,sry
mannn
But are you a pull stack dev @lusty quest

not really
Are you part time pull stack dev đ
im to tired to do this shit rn
Go take a nap then
on namecheap
then i wake up at 2 or 3 in the morning
auric do you have any idea?
oh looks nice
is it only for the first year ?
like its first 1$ and then it becomes 9$/year or something ?
yeah
f.
That's how domains work, they're usually not cheap
I pay $100/month for my 2 main domains - a .dev and a .codes
evieeeee
ive paid 25⏠for 2 or 3 years
I literally pay 12$ per domain per year lol
actually .io and .com
how much did you get from donations/shop within the bots then?
Which aren't the same, lol
I sold the .com though

You did know each domain registrar can charge different prices, right?
yeah ik it does the work and it's more useful
who would use anything except GoDaddy ?
literally everyone I know uses it
One message removed from a suspended account.
One message removed from a suspended account.
yeah renew costs a lot
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
I have never once used anything except GoDaddy
godaddy more like stop me from developing stuff
faith do you know why stuff wouldn't load
what does it take to be a pull stack developer
Being able to do both backend and frontend
more like being able to use google
that's basically every programmer
self._webhooks["dsl"] = {
"path": path or "/dsl",
"auth": auth_key or "",
"func": self._guild_vote_handler
}
me very smart
im about to cry can someone please asdghuobasdghipasdipohgpadoihgdsogfh
why ?
i am stuck and i dont know why it keeps throwing 404s at me
i have been stuck for the whole day
this is so frustrating
cuz it doesn't exist
one issue after the next
im not stupid
it does exist but it refuses to load
the site works locally
it doesnt work on my vps
show code
Are you sure it's not pulling from some other path?
i am sure shiv
Do you have port forwarding on your network?
app.use(express.static("public")); this registers the public dir as static
https://alebot.is-inside.me/WPCE52wf.png this is my file tree
when a dir is static it means that its accessible at root
however for some reason it doesnt put the files at /logo.png or /style.css
just 404s forever
Does it work if you actually put them in that dir?
try
app.use('/', express.static('public'));
it was working locally with how i have it
wait a second
try it on virtualnv
nvm
if you do
app.all("/", (req,res) => {
res.write("hello");
})
do you get any output ?
@pure lion
try dat __dirname thing (though I don't know what it means)
no need, the static method uses path.resolve()
wait I used app.use(express.static('public')) on my VPS and it works
were you using nginx?
its trying to fetch messages that were deleted after bot is restarted?```js
module.exports = class messageDeleteEvent extends BaseEvent {
constructor() {
super('messageDelete');
}
async run(client, message) {
if (!message.guild) return;
if (message.author.id === client.user.id) return;```
how can i fix this?
you can't catch deleted messages
you must use a Database
im not trying to?
wait after bot is restarted ?
wut das dat min ?
when i restart the bot and delete an old message its trying to grab it
hold on,
You will restart the bot
and then you will catch a message that was deleted .
W H A T M E S S A G E ?
no
goes like this
message sent
restart bot
delete message sent manually
its trying to log the event
oh
use a Database like small ones (SQLite)
it should be the only way
to do what?
i dont know if i should go to stack
Save a delete time in database. and message id
when the bot restarts it'll check if data should be deleted or not
nginx is nice, if you know how to configure it, apache is a bit heavyer
ik but I don't wanna change cuz it works still now
never fix working code
if (!message.author == null && message.author.id === client.user.id) return
easy fix
rule 101
refactoring 
hey cry
well maybe if the code is really shite and you got better and know how to do it more efficent
i refactor every week and everytime im like god wtf i wrote this
nah if I try to add a comment then it won't work
this is why you use a version control system
atCry do you know why my files wont load even though they're in a static file and they exist
if you fuck it up you can revert to working code
git always saves my as+ "s"
Guys do you know in discord stream quality, what is the bitrate in standarts?
Standart means not boosting server
is VIEW_AUDIT_LOGS needed to fetch the audit logs?
the bitrate is whatever the bitrate on the channel is set to
streaming is different or not?
hi, i have a question about diceparser, is there a way to make the results show up as icons instead of numbers? assigning numbers to certain images or emojis etc?
make a map or object or list and reference a number to an emoji
is there a way of setting permissions for events inside a constructor?
then just call the map or so with the index of the map
you can use this way to do the stuff you wanted
if i do git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg will it still work insted of downloading buil packages?
build*
this way you're only getting the source code, and you'll have to build it yourself
ohhhhh
ok
thanks'
Guys, I need help why is it doing this? Btw there is no error
\
which on of these
should i install
cause i only have 2
they're not installs
they're just built exes
download and run
use either
yes but when i click them they take me to github
for the BTbn
one
how long does it take a bot to get verified on the server
use node-ffmpeg instead
a week probably
wut
Ik
mine took 8 weeks lol
@near stratus im using discord.py
someone has to manually test and inspect your bot
yeah I saw that
so what do i do
to install it easier
can i do it directly in terminal
or
lemme see
ty
where are you hosting?
vs code
@maiden holly Can you not spam please
hosting not editing
oh ok
@earnest phoenix add this buildpack
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
it should work fine
add it from Heroku > dashboard > settings > buildpacks
You can add it from cmd too but you'll need Heroku cli for this
yeah
now manually deploy it to use it in work
yeah then
made a join command
@client.command(pass_context=True)
async def join(ctx):
channel = ctx.message.author.voice.voice_channel
await client.join_voice_channel
then ?
does it work ?
a sec
k
what error does it show ?
heroku logs --tail --app AppName
where do i put this
it'll show the log
install Heroku CLI
i did
then type that
It'll show something like this
2021-01-16T17:31:21.470316+00:00 heroku[worker.1]: Cycling
2021-01-16T17:31:21.472537+00:00 heroku[worker.1]: State changed from up to starting
2021-01-16T17:31:22.993210+00:00 heroku[worker.1]: Stopping all processes with SIGTERM
2021-01-16T17:31:23.173011+00:00 heroku[worker.1]: Process exited with status 143
2021-01-16T17:31:49.477599+00:00 heroku[worker.1]: Starting process with command `node index.js`
2021-01-16T17:31:50.062574+00:00 heroku[worker.1]: State changed from starting to up
2021-01-16T17:31:54.070722+00:00 app[worker.1]: Server is up on port : 38679
2021-01-16T17:31:54.834891+00:00 app[worker.1]: Logged in as Plubin#3635!
noice
yeah no bug
k
ill let you know
kay
build pack is Heroku and it enables Heroku to have software that you can manually install on your pc
yeah
ok hold on
@client.command()
async def join(ctx):
channel = ctx.author.voice.channel
await channel.connect()
@client.command()
async def leave(ctx):
await ctx.voice_client.disconnect()```
This is code
if your wondering
try running
heroku run bash -a appName
ok
ty
now fix it for auto deploy
I have only done music with JavaScript
idk how ytdl works on python
I can tell the algorithm though
ooh yes ty
Will you use a Database ?
(probably yes cuz Heroku gives only 512 mb ram)
if you wanna store it then you a gotta use it
how do i use it
Which Database are you gonna use ?
i dont know which one would you recommend
i dont really know much of that stuff
just the programming and
yea
Since Heroku gives free Postgre you acan try that
I used mongo cuz I used JS
Or maybe MySQL ?
you'll have to verify on Heroku though
is there away to make that it will give a user money every x hour
with out the user doing the command
like he need to do it once
with quick.db
if you use js use a timeout and then query the user (but i would not recommend this since it can hammer your db quite hard)
i did a timer
but to get it you got to do the command again
can i show you what i did?
@lusty quest
i go to sleep soon, so rather no. but what i can say is if you would use a proper database or a better way to query sqlite you could do it quite efficent, since with the proper way you can query all entrys at once
nothing like tasks.loop() in JS?
(tasks.loop does a certain task every time after a specified amount of time)
setInterval( function, timeoutInMs) does that
well @tardy hornet you can try that
let values = await client.shard.broadcastEval(`[
this.guilds.cache.size,
this.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)
]`)
is returning:
[
[915, 205629],
[898, 61653],
[926, 57295],
[922, 87661],
[900, 61358],
[950, null],
]
Any way of only getting memberCount for available guilds in broadcastEval?
memberCount should never return null, but you can just default to 0 (.memberCount ?? 0 or .memberCount || 0)
It probably did it because of an unavailable guild
Most likely. Just misleading for the docs to document it as non-null
If the guild is a problem you would use if (<message>.channel.type == "dm") return;


