#development
1 messages · Page 715 of 1
I have and it comes up default grey
wait nope
For the color :/
@earnest phoenix setColor("0x34363D")
@vocal phoenix that removes it?
It matches the embed's color, so it looks like there* is no color.
Definitely won't* work for light theme.
Thanks
message.guild.createChannel(TESTVAR, "voice")
.then(channel => {
let category = message.guild.channels.find(c => c.name == "TESTING" && c.type == "category");
if (!category) throw new Error("Category channel does not exist");
channel.setParent(category.id);
var every1 = message.guild.id;
channel.overwritePermissions(every1, {"CONNECT": false})
}).catch(console.error);
I'm trying to create a voice channel that people can view but not connect to, this still broken reee
any help would be apprecicated
Is there an Error?
(node:35540) DeprecationWarning: Guild#createChannel: Create channels with an options object instead of separate parameters Error: Value must be specified. at Map.find (F:\desktop\PCB Testing\node_modules\discord.js\src\util\Collection.js:499:45) at message.guild.createChannel.then.channel (F:\desktop\PCB Testing\app.js:243:44) at process._tickCallback (internal/process/next_tick.js:68:7) (node:35540) DeprecationWarning: Collection#find: pass a function instead
What version of djs?
Also, the error tells you to pass an object of options instead of separate parameters.
You can find accepted properties on their website under channelData.
So we been setting up a restful like api to handle bot functionality so we can reuse it on multiple platforms etc right, but thinking about it there must be something more effecient then having the bot call a local api right?
like isnt there a way to have processes interact without having to use an api necessarily
lol uber moment
processes cant share websocket connections ofc
so if this is clustering processes then just stick with an internal api
good ol req/res never hurt anyone
I get this error when I try to install node-opus: https://pastebin.com/8avRA8ej
Could someone help me?
hello everyone! I have a little problem. Could someone please come and install the bot Invite Manager on my server? Please contact me by mp
no
ipc
spawn a main process, have it spawn specific child process per spawwn
connect it via ipc
@earnest phoenix ^
Join
@glacial mango install windows-build-tools
Or if you’re only testing, just use opusscript instead
I've installed windows-build-tools but I still get that error
Wdym with opus script?
opusscript doesn’t work as well but you shouldn’t have any issues installing it @glacial mango
You should always use node-opus for production though
What's difference between testing and production?
Testing / development application is for when you’re changing code and you wanna like make sure it actually works.
Production is the actual finished product, in this case the bot that people will actually be inviting.
It’s bad practice to change something on what people are using at that time at risk of breaking something or stopping responding to users trying to use the bot
Is it possible to make a discord bot using c#? It's for a school project
found, thanks!
One message removed from a suspended account.
One message removed from a suspended account.
sweet, just wanted to know that it is possible
I would recommend https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes if you're looking for something like that
@amber fractal 💗 thank you
i used includes() now worked as i expected
👌
Im trying to host a bot which i found of github on glitch the bot goes online but none of the commands r working can someone help me?
https://github.com/Rantanen/node-opus/issues/30 this may help
Actually
C:\Users\terhe\.node-gyp\10.16.0\x64\node.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x22F720
There's your error
Well the link I provided was for a different error, I didn't find yours until then and it says invalid file or disk full
The file might not exist or your hard drive could be full I guess
How could I make the file exist?
@glacial mango
check hard drive for corruption chkdsk C: /F
try installing your bot in another folder
How can i block blacklisted user on website panel :/
I can't launch .bat files.
Can someone help me. If you can please PM me. Thanks
FIXED
bruh moment
lil bruh moments ❤

ReferenceError: guild is not defined
at message.guild.createChannel.then.channel (F:\desktop\PCB Testing\app.js:238:36)
at process._tickCallback (internal/process/next_tick.js:68:7)
message.guild.createChannel(playerCount, "voice")
.then(channel => {
let category = message.guild.channels.find(c => c.name == "VRC_Playercount" && c.type == "category");
if (!category) throw new Error("Category channel does not exist");
channel.setParent(category.id);
channel.overwritePermissions(guild.defaultRole, {"CONNECT": false} , {"VIEW_CHANNEL": true})
}).catch(console.error);
Trying to call for the guild.ID to set a @ everyone role permission for a channel, its making the channel but not setting the permission, and apparently guild is not defined ??
i feel like im being hella dumb here
channel.overwritePermissions(guild.defaultRole, ...
You have message.guild but are using guild
I've tried message.guild.id too, same issue :/
message.guild.createChannel(playerCount, {type: 'voice'} , {permissionOverwrites: message.guild.defaultRole, 'CONNECT':false , 'VIEW_CHANNEL':true})
.then(channel => {
let category = message.guild.channels.find(c => c.name == "VRC_Playercount" && c.type == "category");
if (!category) throw new Error("Category channel does not exist");
channel.setParent(category.id);
channel.overwritePermissions(message.guild.defaultRole, {"CONNECT": false} , {"VIEW_CHANNEL": true})
}).catch(console.error);
Adjusted to this, no errors, but the channel perms are still open to the @ everyone role, no changes, no "CONNECT":false "VIEW_CHANNEL":true
whats the best way to call for the current guild ID/(the @ everyone role) for this kinda thing
I'm dumb
I was using message.guild.defaultrole for the channel.overwitePermissions
this fixed it
channel.overwritePermissions(channel.guild.defaultRole, {"CONNECT": false} , {"VIEW_CHANNEL": true})
channel,guild.defaultRole
I need reviews regarding the looks of https://2360dfab.ngrok.io it's incomplete so you may get a lot of 404s
A library to make oauth requests to discord. It is easy to use and implement in your app.
first thing I noticed when scrolling in the get started part
And yes, it's dark theme only
When you scroll down, yes
Scroll back up and it's fine. I deliberately made it that way
@quartz kindle how do I do that? I don't understand what you mean
then google it
I mean didn't you kind of say
More precisely, I need reviews on the colors
Lol
seriously
at least in my opinion, nothing realy matches
even look at bot dashboards to get an idea
they often have very nice layouts and color schemes
Ty but I'm kinda trying to make something completely unique here
you can be completely unique, but still not make it a rainbow
its a personal opinion, but on the main page
with those two boxes
add some drop shadow
and maybe not use almost pure black
and maybe not use almost pure black
Unless I'm running the production one
also
the bottom right bottom
that says Join Discord
is missing a border color
Ah yes, it's running the production one, that I haven't updated in ages, my bas
Bad*
I already added a drop Shadow and removed the border color
From the button
the highlighted text with the background is nice
link text
not highlighted
but
perhaps on the doc page
change the background of some of the code example windows
Yes thats to be done but I can't seem to find a color that's good enough to be used there.
I want it to be a shade of grey with a slightly extra blue.
But can't seem to find the perfect combination
Well, I'll continue the trial and error
ok last thing oof, its killing me to keep asking stuff 
so I'm trying to move a channel category to positon 0, then add a channel to that category
it just returns with Error: Supplied channel is not a channel or snowflake.
is there a way to set a category position?
i've got it set to position 0 in the create-channel, but that doesnt seem to set it for some reason
message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'})
message.guild.setChannelPosition('VRC_Playercount', '0')
Error: Supplied channel is not a channel or snowflake.
let channel = await ....createChannel(....)
....setChannelPosition(channel,0)```
oof, im real dumb some times
cries in dumb brain
.setChannelPosition(channel,0)
^
ReferenceError: channel is not defined
updated the answer
also, why are you setting the position after, when you already set it during creation?
idk, the position set during creation isnt taking hold, its just dumping the category at the bottom of the list, rather than setting its position to the top
so i thought re-setting it after might work
(node:27232) UnhandledPromiseRejectionWarning: ReferenceError: channelCreate is not defined
createChannel =/= channelCreate
tims example showed createChannel
im being dumb dont mind me oof
lol thats fine
we all have those days
well I mean, same issue ;-;
(node:37180) UnhandledPromiseRejectionWarning: ReferenceError: createChannel is not defined
well
did you define it somehow
are you using message.guild.createChannel
^
yah
one sec
if (command === 'channel') {
if(message.author.bot) return;
message.channel.send ("Adding Channel");
//message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'}) -oldcode
let channel = await message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'}) //-new
.setChannelPosition(channel,0) //new
//message.guild.setChannelPosition('VRC_Playercount', '0') -oldcode
.catch(console.error);
its one of those days
yikes
(node:38816) UnhandledPromiseRejectionWarning: ReferenceError: channel is not defined
but if you want to do it that way, you also can
if you wrap it in parenthesis
(await something()).somethingElse()
the channel object wouldnt point to anything
can use channel.setPosition() instead
you would need message.guild.setChannelPosition(await message.guild.createChannel(....))
ah
idk the lib
yeah both ways work
old code was simply this
message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'})
message.guild.setChannelPosition('VRC_Playercount', '0')
all i wanna do is move the category to position 0 ;-; buh its not doing it on creation nd its giving an error for .setchannelpos
discord.js
because setChannelPosition requires a channel object or a channel ID
not a channel name
ahhhh
holy fuck im being really dumb today, one sec
sometimes simple shit just makes me wanna cry
just read the docs
docs broke me, send help
development and logic aside it's honestly best to take a break
as a reminder for anyone who does need help & you know you're too tired to fix it, just step outside or sleep and you'll probably see the problem a little clearer after that break
very true, I was tryna figure it out using the docs last night, gave up and went to bed, now im back at it and I'm still dead inside 
I FIXED IT
if (command === 'channel') {
if(message.author.bot) return;
message.channel.send ("Adding Channel");
message.guild.createChannel('VRC_Playercount', {type: 'category', position:'0'})
client.on("channelCreate", function(chan1){ //read channelCreate for ID
message.guild.setChannelPosition(chan1.id, '0') //set channelID to position 0
console.log(chan1.id)}) //double check if ID is printed
Thanks guys ❤
why are you putting an event listener in a command
that seems to be a really bad idea
im lazy and only want it to work with that one command, so idk
it works so im happy xD
otherwise it'll stack on each time someone does that command
oof
ohh boy I see what you mean by that stack, might have to move the listener outside or something to fix it
const request = await axios({
method: 'post',
url: 'https://discordapp.com/api/oauth2/token',
data: {
client_id: config.authentication.clientID,
client_secret: config.authentication.clientSecret,
grant_type: 'authorization_code',
code,
redirect_uri: 'https://localhost/',
scope: 'identify email'
},
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
});
Working on getting discord Oauth working but this just returns 400 everytime
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
And I'm using this example
Definitely is a horrible idea @earnest phoenix
Not only will you be adding another listener each time someone does that
Those will also ALL be fired each time someone creates a channel
^
discord.js: what is the difference of message.send and message.reply ?
and by someone, really anyone ever, not only those who use the command
also creating channels through discord
reply mentions the author of that message
ah thanks!
how would I go about removing the listener after its done its thing
mentioning users in each reply is something users may dislike, so you could try avoiding that
DapperSquid use a different approach
@earnest phoenix dont go that route please
cries
whelp at least i got the code section working a bit, need to grab the created channel ID a different way I guess
Which means you can
let channel = await guild.createChannel(whateverArguments)```
and than you can use channel.id
You could also
guild.createChannel().then(channel => {
//channel.id
})```
which is exactly what i said before, but my answer wasnt spoonfeedy enough lul
Well you could use .once instead of .on and it only listens once iirc
well, yeah, but in between creating the listener and the event arriving, you can accidentally catch another event lul
What was he attempting to do
create a channel then set its position
All I saw was
how would I go about removing the listener after its done its thing
Oh
You can set it as you create it, no?
he did, but said it didnt work
oof I fixed the thing, sorry for being dumb abt it earlier, I tried the let method and put it in the wrong place so was just like, nah this wont work
just re-tried in a different place and it works perfectly
Im on phone right now, but I might be able to help later
btw have you tried position:0 instead of position:'0'?
ie, a number, not a string
when you create a channel
nah it didnt work
idek
i dont think it likes creating categories with a set position
I think that'd be abused quite a bit
does anyone have a bootstrap navbar that actually works?
Imagine GoLive become available for discord's api
it is
none of them work on mobile
everything you do goes through the api
it's just that video streaming isn't exposed to bots
Why does the Total Channels include categories?
Because categories are a type of channel
How do I "not include" them?
filter them
if (message.guild.id !== `611881570202025986`) return
is this correct
to ignore a guild?
Yes
but it doesnt check
you'd ignore every guild except 611881570202025986 with that if

🤦

It happens 🤣
Why does this not work?
app.get("/upload/:id", function(req, res) {
let url = require("url");
var parts = url.parse(req.url, true);
var query = parts.query;
const request = require("request");
const fs = require("fs");
const download = function(uri, filename, callback) {
request.head(uri, (err, res, body) => {
console.log("content-type:", res.headers["content-type"]);
console.log("content-length:", res.headers["content-length"]);
request(uri)
.pipe(fs.createWriteStream("/images/" + req.params.id + ".png"))
.on("close", callback);
});
};
download(`${query.url}`);
. . .
throw new TypeError('"listener" argument must be a function');
^
TypeError: "listener" argument must be a function
The error happens for .on("close", callback)
show us your callback function.
Looks like callback doesn't exist
message.guild.createChannel(`${message.author.id}`, "text");
this doesn't work...
at Client.client.on ([ignore me]/server.js:176:23)
at Client.emit (events.js:189:13)
at MessageCreateAction.handle (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/WebSocketManager.js:391:31)
at WebSocketShard.onPacket (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/WebSocketShard.js:423:22)
at WebSocketShard.onMessage (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.github.com/discordjs/discord.js/16db92ede8dc164346eca8482ea008cb21032c7b/node_modules/discord.js/src/client/websocket/WebSocketShard.js:279:10)
at WebSocket.onMessage (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:189:13)
at Receiver.receiverOnMessage (/rbd/pnpm-volume/0a3b8ae4-0db1-462d-ba19-27eb814e819b/node_modules/.registry.npmjs.org/ws/6.2.1/node_modules/ws/lib/websocket.js:789:20)
What's the actual error message? You're showing us the stack trace.
Does anybody know a way to sort roles in the order they're in?
Host what lang
uh?
Node js is easy to host tbh
neko
What does “Cannot find module” mean?
the user's name is host
Maybe
Name leak!11!1!!!1
it was my old tag
I was a regular here but I took a long break
to answer your question
use the sort method
Hey, anyone know why it doesn't install my npm packages
it returns an error
Even though i did npm i discord.js
What error.
here
oh wait
Oh herOku.
i forgot to redo it i'm stupid af
Heroku, glitch same thing
^
still a free host.
equally garbage
Yep
yes
bruh
I just been looking around about the sort() method and dont know what I should exactly be putting in parameters
the sort() method needs two items to compare, items that can be compared as bigger or smaller
if you want to sort by role position, you need to get the position number
and use that number in the parameters
if you want to sort alphabetically, you can use the role names, because js can do bigger/smaller comparisons on text, by using a numbered alphabet (ie: "a" is smaller than "b")
rip, I can't seem to suss this out, I just tried this:
message.guild.roles.sort((a, b) => { return a.position - b.position; }).map(role => role.name);
but wasnt in the order I wanted
oh nvm, im stupid, i was reading it in this order lmao
thank you @/cry and @/Tim
Having trouble with this script, it is using .find to locate a channel, I am unsure of how to aquire the id instead, there will be no matching names with other channels so that is not a worry of mine
let channel1 = client.channels.find("name",msg.author.tag + 's Application') let guild = msg.guild guild.channel1.send('Test')
The specific error is undefined
- That type of find is deprecated. Pass a function instead.
- If it's undefined, the channel wasn't found. If it's found, send the id.
ok
anyone have any cool resources on general structure of applications etc?
i like organization and scalable things
uwu
yes uber there comes a time when application structure is important
but there is also google
https://cdn.discordapp.com/attachments/517738618249543690/636358143101632512/shop.png
Does anyone know why the canvas is smaller than expected?
it's created like this: ```js
var canvas = shopData.featured.length > shopData.daily.length ? createCanvas(1632, 635 + (256 * ((shopData.featured.length % 3) + 1))) : createCanvas(1632, 635 + (256 * ((shopData.daily.length % 3) + 1)))
height wise?
huh?
i think you want to use 635 + (256 * ((shopData.featured.length / 3) + 1))
oh yeah this is js haha
:)
btw you could use Math.max()
createCanvas(1632, 635 + (256 * ((Math.max(shopData.featured.length, shopData.daily.length) / 3) + 1)))
not for the truncation
ah
ternary is unnecessary here although it certainly works
thanks
The bot has to be in that server
oh, cant use emoji on other server with id?
No
ok rip
And how do i use custom emoji when sharding? XD
cuz in other shard shows "undefined" instead of emoji
Oh wait, so i created emoji in one server and testing in another server, so i had to invite bot to emoji server inorder to use it?
sharding shouldn't effect that
You're probably attempting to grab the emoji from the guild
thanks guys
@late hill I use this
const emoji = client.emojis.get("emoji-id");
oh, okay
how to edit the the message which was sent by bot
i mean suppose i make an announcement command but i need to edit the message ,how to do that ?
@cerulean salmon Gotta supply more information like what library and language
discord.js
You can save the message object as a variable and call .edit(), you can fetch the message by its id then .edit(), or you can set a timeout and call edit() after a few seconds.
@cerulean salmon const msg = await message.channel.send("Message from before."); msg.edit(`to edit to`)
thank u Duane & xProxy
question: what are the css frameworks you prefer and do they have dark theme
i love modestacss which is focused on dark colors, but you can simply change the colors too https://modesta.alexflipnote.dev
A clean CSS framework made to be dark, responsive and easy to build with.
Yo
I am stuck on discord.py with music commands, I managed to get the bot to join the voice channel but it wouldn’t play music
Can someone DM me if they can help
Whats the rate limit of renaming a voice channel?
im going to port my bot's discord frontend to sleepy-discord
i do love C++ and the speed at which it processes incoming messages is staggering
especially compared to my fork of discordphp
cool
what's fmn
fmn=message.mentions.members.first();
.members.first() already returns a user object does it not?
unless im being stupid because i dont know js
Yea that should fmn.id
members.first() returns a member, if there is one
Try logging message.mentions.members.first()
thanks all
solved now
hey
i'm a noob at fs
i want to make a error logger
so i made it
but now
it overwrites it instead of writing it in a new line can anyone help?
my code javascript let cerror = dateTime + ": Unable to fetch http://aws.random.cat/meow for cat commmand" console.log(cerror) sklogsc.send(cerror) fs.writeFile('./commands/logs/log.json', cerror, (err) => { if (err) { sklogsc.send(dateTime + ": Error while writing in file `logs.txt` for `cat` command") sklogsc.send("error: " + err + "") } sklogsc.send("The error was logged onto the logs.txt file.") })
One message removed from a suspended account.
is there a way to make it write on a new line? @sage bobcat
One message removed from a suspended account.
One message removed from a suspended account.
ohh how?
One message removed from a suspended account.
One message removed from a suspended account.
\n where?
One message removed from a suspended account.
One message removed from a suspended account.
\n means adding a new line, it would still overwrite
One message removed from a suspended account.
One message removed from a suspended account.
\n wouldn't help, you could use fs's appendFile fn
All I know is Java, so I can't really help you
keeping an eye on the console is hard discord was messing with my bot
how does appendfile work? @sudden geyser
appends data to a file, so your other logs are there
so it's the same thing right ? js fs.appendFile('./commands/logs/log.json', cerror, (err) => {
like that^^
try
Yo um
In java
I just wanna make like a status
Like just status only
@sage bobcat
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
Or no*
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
What
One message removed from a suspended account.
One message removed from a suspended account.
Hmm
ok
a little bit of messing around has fixed it
Status
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
how to change bot status in python
Where u host ur bot @earnest phoenix
Pc
smelderesonu I don't use java much, but in jda, there's a getPresence method where you can set the status there
Really?
vps is better tbh
?
@sudden geyser what u use
😳
a vps
@earnest phoenix how did u get use
what
@sudden geyser gime link
downloaded
@earnest phoenix how did u learn it
There are some pinned VPS' in pinned messages
dunno
@grizzled frigate I use Vultur for a VPS they are an alright service and offer $50 on sign up
Well with the $50 credit you can get a free VPS for a few months considering their only like $5 a month
Why not use heroku then
anyone have experience using platform credits on heroku ?
Heroku is garbage
Heroku isnt meant for discord bots
They have data limits
virgin presidents state
Like free
Paid VPS are better

Free VPS is not good
Free VPS will be limited

Self Host
^
Do you have a spare computer?
Self hosting is better than a free vps
heroku lets you migrate your code directly from githyb
it's super user friendly
Is glitch.com good for js
But like we said, very limited.
What limited
can anyone help me with my reload command?
Glitch and heroku aren't meant for bots.
Like why
use google cloud
code
bruh
its free
Whats the difference
it won't work
Google cloud is paid @earnest phoenix
its free trial
...
Yeah he wants a free option
Let's say you are transferring a entire git repo every time.
Something that he can use to host for free
Yeah
Self hosting is free if you have a spare computer
Nopendontbhave
i don't think vps are userfriendly from what i've seen
You just have to get used to it
AWS is fairly user friendly but is hella expensive
aws gives students free credit right ?
If you really want free, just use heroku. It will be slow, and limited, but it will work.
@earnest phoenix no
One message removed from a suspended account.
slow
@cursive gale require caches stuff meaning if you require it again, it'll still be the same
sYnTaXeRorR
Heroku is slow?
One message removed from a suspended account.
One message removed from a suspended account.
@grizzled frigate Heroku is slow due to their data limits
just buy vps
@sage bobcat no not u
For http requests yeah
and good
heroku isn't slow
@earnest phoenix limited usage likely 
it's bad for many reasons but you can easily run a shit bot on it

The best way is to just test your bot on your own computer and then when its ready you can put it on a vps or host it somewhere else
True but I wouldn't recommend using it as a host for something that you are expecting to be popular @late hill
i haven't had any issues with it besides the free credit doesn't let you run it forever
it's enough for about 1 month
Btw u guys have websites fornur bots
@late hill i didn't get it can you tell me in more detail?
One message removed from a suspended account.
my bot has no website
require has a cache
One message removed from a suspended account.
so what should i do?
You have to delete it from cache
One message removed from a suspended account.
Its alr
can i delete the whole cache?
or how would i do it?
bye
ugh
but you can host your bot on heroku forever if you have 2 accounts
One message removed from a suspended account.
and change your bot between those two once a month
when one of the accounts run out of free host time
delete require.cache[require.resolve('path here')]```
should work afaik
If you require it again after deleting it, it should be the updated version
Zerp you could do that, but Heroku's still limited either way. Plus that's pretty cheap imo
heroku was epic before they enforced the limit properly
you could have 5 projects running the entire month
if they were worker dyno's
like this?
This is my vps I pay $5 a month for all that
In terms of GitHub projects it's semi user friendly but not hard to learn
I'm not too sure but go ahead and try it @cursive gale 😂
Damn nice

i've hosted 2bots the entire month on heroku for free
@cursive gale yeah you can use it to host but once your bots hit that data limit all your bots will go offline
It's a account wide limit not per application
it works but goes down if you try to update it
I found with Heroku hitting that limit is hard the bot either has to be used a lot or you need to host more then one so for example I used to host my friends bots on it to so (6 or 7 bots) and that limit was hit within 2 weeks
One message removed from a suspended account.
I need to get a vps
One message removed from a suspended account.
@sage bobcat what host u use

One message removed from a suspended account.
One message removed from a suspended account.
i use a raspberry pi
Noice
it gets the job done
@earnest phoenix wha
Raspberry Pi is good
How much raspberry
One message removed from a suspended account.
£35
about 2 cups
$35
@earnest phoenix lol that it does, my buddy uses one
One message removed from a suspended account.
One message removed from a suspended account.
You can code with your phone, PC you can use anything
i dont know how good coding works on a phone, so i would advice a laptop or pc for coding
^
One message removed from a suspended account.
One message removed from a suspended account.
yess ty it works
atom is a memory hog afaik
Phone?
its just slow and smelly
Coding on phone?
vim is fast and barely uses resources 

One message removed from a suspended account.
if you want to run it on a raspberry pi then you could also use that rpi to code on
Wha
why
I don't even code on my pi
What u do with ur pi
host botum

Ye
O
for said botum
a vps is what it stands for. a virtual private server
smel, do you already have a working bot?
there is no need for a host or vps as long as you dont have a bot
i host the test bot on my pc while im coding
^
code one @grizzled frigate
dont use dbm
Yeah
🤮🤮
a vps is like a server, but its virtual
I have used dbm once, I can code a function faster than I could make it in dbm
dbm is just
no
DBM is 🤮🤮
tbh its fine if you want a basic bot for your server
Idk why my phone capitalized but
Yeah I used it once made a nice simple bot but then I just started looking around reading guides ect and now I just code them myself from scratch
Yeah it's easier I still struggle with some stuff or I'll make a simple mistake like forgetting a ; or some sh** but other then that
Bruh
everyone forgets ; all the time
😂😂
Does vps
thats why IDE's exist
One message removed from a suspended account.
One message removed from a suspended account.

no advertising @sage bobcat 😛
One message removed from a suspended account.
One message removed from a suspended account.
Why
you wont get free quality
One message removed from a suspended account.
Glitch is
@grizzled frigate ^^
glitch is decent if you dont use it
They list a few host solutions
One message removed from a suspended account.
One message removed from a suspended account.
self hosting
but thats not ideal
you can also host on repl it
no
thats probably worse
yes you can ?
Ill not use my pc for a while it broke
@earnest phoenix not necessarily free if you think about it who pays your internet bill 🤔
😂😂
Might use heroku
technically free
One message removed from a suspended account.
say you use glitch
U cant use vps on android
I dont say my age
so is repl
you already pay for your internet bill, hosting a bot wont make it more expensive 😛
"yes"
I might look like act like a kid pedo
@blissful scaffold I know was just being a smart a**
One message removed from a suspended account.
^
One message removed from a suspended account.
Me*
That depends on your provider and the plan you have with them?
Many providers still don't give you unlimited data
Ive decided to do the challenge, ill code on my phone then
im pretty sure im older than you @grizzled frigate
How
terminus
imagine comparing edges like that
im pretty sure im older than you yikes 😳
?
If you're new to coding you rly shouldn't be coding on mobile as it'll probably be hell to do so
what you learn is what you learn though
why are there so many vps shills here advertising their paid services and shit talking competitors smh 
Small screen, less options for good ide's if any at all
Yeah
you need a spare phone if you want to host it on a phone.
you really dont want to host anything on a phone that you use for calling and playing games
Can't he just use like PM2
?
If he self hosts
Just a suggestion
Then again you need a PC so scratch that I guess
are there any host services that specializes in discord bots
every host that has an internet connection i guess?
as long as it supports at least one of those ^
a vps supports all of those lmao
idunno i would say that just supports and not necessarily specializes in making discord bot hosting easier
yeah, i dont know if there are hosts that specialize in making it easier to host discord bots
like if i google "how to host discord bot" i see services such as heroku, glitch and repl having a lot of tutorials available
making it an easier progress
imo
you can always use Heroku while you are learning about discord bots
after that you can always switch to something better
Can heroku run 24/7?
WHAT
it can run 24/7 for a little under half a month
it's limited by live hours
@grizzled frigate ^^
to my knowledge
@earnest phoenix I believe so they call it "rows"
Like the dev plans limit is 10,000 rows
but i think if you have 2 accounts
and switch between those two once a month, you can run it 24/7 forever
True
repl and glitch are free too, but your bot goes offline after 5 min of inactivity
but there are tutorials to make code that pings your bot every 5 min, which supposedly lets your bot run forever, haven't tried it though
they work
so that solution is actually better than heroku ?
One message removed from a suspended account.
One message removed from a suspended account.
@sage bobcat 0
One message removed from a suspended account.
One message removed from a suspended account.
Kkk sure 
One message removed from a suspended account.
lol what
hey does anyone know how to get the current date and time?
One message removed from a suspended account.
look at a clock
One message removed from a suspended account.
One message removed from a suspended account.
windows 10 has that info
One message removed from a suspended account.
^
hmm ok
Current date and time 
Date.now()
new Date() or that^^
One message removed from a suspended account.
One message removed from a suspended account.
javascript basic functions still exist
One message removed from a suspended account.
he didn't specify any use case
message.createdAt is the date the message was sent not the current date
maybe it's not even inside a message listener
One message removed from a suspended account.
...
guys i am a beginner and i am programing a discord bot that creates a discord server and all was working fine until i did something i cant remember and that error poped up
if someone can help it will be appriciated
i think the problem in that part
@vapid palm Can I see Line 207?
Well I would make it into a percentage from the current time and the end time and with the percentage make the ○ go as far as the percentage goes, so if it is 50% the o would be half way @glacial mango
@earnest phoenix he posted it below the terminal pic
@earnest phoenix
its a bot that creates channels and categories and joins them togther
and custom permissions for every cat and voice limit for the voice channels
Sounds like api abuse
message.createdAt works fine for me except that...
i don't what the extra timezone at the end
anyway to remove it?
@amber fractal its not legal to create a bot like this?
@cursive gale createdTimestamp
??
That will return an actual timestamp
@vapid palm Just limit how fast you're creating the channels and it should be fine.
ok
@earnest phoenix i already did that time for everything
if u can come private i can share screen
But the time is in miliseconds, you can format it yourself as createdAt returns a date object iirc
One message removed from a suspended account.
How do I get the time of the song which is current playing
yes i can read your mind and tell everything that you're using




