#development
1 messages · Page 1084 of 1
I have questions about hosting an ejs server
If the server port is 6969 can I use any other port or just 6969?
you mean express?
Yeah
you can just use any open ports
Okay cool
Now I just gotta figure out how to run my index.js and my app.js
:d
Also pointing the DNS of my namecheap domain, which ip/port am I using?
uhhhh your vps's ip? (for A record)
cloudflare?
Oh
no i ask if you use cloudflare
Nope
usually the host is your IP
And value?
your domain / sub domain
Alrighttt
If you want to mask your IP, cloudflare is a good choice (not relevant, I'm just recommending it as I use it for all my domains). They proxy requests and can stop DDoS attacks
Oo
Plus it's free
you dont need to use it but its anyways a good idea
^
cloudflare isn't a host
e?
it's just a DNS proxy
its a proxy service for DDos Protection
Oh got it
almost all services use cloudflare
Btw for A record the value field is red if I put in my subdomain
how does your record looks like? its also possible that you need to set a TTL
It's on automatic
What did you put in there? An IP or a domain?
Value I put IP, host I put @ and TTL 30 mins and there's no errors
Btw for A record the value field is red if I put in my subdomain
you need to do a cname for this
Oh got it
👍
So now host is the IP and the value is the domain
i would suggest to switch to Cloudflare before you start adding DNS records. it can be annoying to migrate later
Free package okay?
Alright, just click add a website?
yes
Yeah
You need to change your name servers, cloudflare will tell you what yours are.
For example.com I put the domain?
Yes
Sexc
If you lookup your domain dns once you have moved it to cloudflare, it will show as an IP
Which will be cloudflare's proxy
So now I have a list of the shit on my screen
Send ss
Yes they are your existing records
can u host discord bots in vercel?
@golden condor maybeweshouldhurryupandfixthisyummmm
looks like a Webspace host.. maybe
can u host discord bots in vercel?
@slender wagon technically yes
should i give it a try?
Okay for cname do I include the IP and port?
You can't do that.
Oh
That's not how domains work.
Also you have set your IP as 127.0.0.1 and you covered it lmao
That's localhost
x(
Everyone's local IP is 127.0.0.1
Which do I use then
My code doesn't work
*cries*
@earnest phoenix any error?
@earnest phoenix any error?
@lusty quest I already type all | bot don't ban and don't have any error
Example: 1.1.1.1 is a public IP but 127.0.0.1 and 192.168.x.x are private IPs.
i guess your reason could be a issue. or why did you slice at index 22?
Ohhhhh
also you never ban the user
What can I run in the console to get the IP?
did you got a VPS?
Yeah
same IP you use for connecting with SSH
if (!muteRole) {
try {
msg.reply(
`:sheep_dance: No role called Muted found creating one `
);
muteRole = await msg.guild.roles.create({ data: { name: "Muted" } });
msg.guild.channels.forEach(async (channel, id) => {
await channel.overwritePermissions(muteRole, {
SEND_MESSAGES: false,
ADD_REACTIONS: false
});
});
} catch (e) {
console.log(e.stack);
}```
this creates a role
but don't over write
perms
It doesn't show me the IP, just the connection and port
connection?
That IP
You need the IP of your vps to be able to connect to it?
UhHhhH
you can connect over Domain also
If you ssh 127.0.0.1 you are just connecting to your own pc
you can connect over Domain also
@lusty quest yeah ik
I just forgot lol
Well shit it's my IP
It's not your ip
would be now funny AF if he managed to run a SSH server on his PC and still pay for a VPS
It's localhost
which provider are you using for your vps
@delicate shore Missing Permissions?
Oh sorry I guess I'll drop everything I'm doing and worship the ground you walk on because you are so important
has the Bot the Permissions to see the Channels?
I don't know how many times you have to be told to debug your fucking code
😳
we're not computers
has the Bot the Permissions to see the Channels?
@lusty quest admin
we cannot evaluate the code
I don't know why you feel entitled to be helped whenever you need help because you said it, if we are helping someone else, just wait.
Um
e
https://alebot.is-inside.me/68cecENl.png this i have no idea what else
Who did you buy it from?
where u host the bot
do i have to check if a bot name is available before naming it?
No, it will tell you if it is unavailable
e
If you want to name it a common name, it will tell you that you can't
👍
ohh right this issue @golden condor he got the Bot hosted told him last time already to get the IP
@pure lion did you buy this server?
na it was given to me for free by the host of the panel
Sorry what, I'm confused, can you explain that again (it's too early in the morning) @lusty quest
uh i really hope you didn't search for a "node host" instead of buying a vps and installing node onto it
oh
aight
i just remembered he wanted to get a domain a while ago but was unable to get the IP of his VPS
its not Even a VPS its a docker container running on a Root server
Iirc, pterodactyl should tell you
this whole thing seems sketch
not the way he got it setup
yeah
But this looks like you set it up on your pc
didnt
Ptrodactyl is actually decent for hosting Gameservers. i know a few hosters who use it
i don't think it's set up properly 💀
oh no
I'm pretty confused
same
he got a Host Bride -> Uses same IP as the Host system
you should just get a cheap vps from a reputable provider instead of going for something sketch
Can you try type ifconfig in the server
will show localhost as ip
Right
ohno
@pure lion how u got a domain for free
there are free domains you can get
i know
yea docker is nice for having Services seperated from the Host OS
Ah shit
but annoying to work with if you need infos about the Host
"free domains" are genuinely bad, a lot of them get flagged for spam and a lot of services ban the TLDs for being widely used by scammers
google also knocks down the domain to low tier search results which means you're never going to have good SEO
You could go with something like DanBot but I wouldn't recommend it
actually you could lookup the Domain of the Host in the Browser console
ok
but i dont think you know how
nope
Something is almost always too good to be true if it seems it
(its a debugging step for ptrodactyl)
just gimme da shit
What is the domain you access it from?
usually press F12 until you get your Browser Debugging Console and search for heartbeats
do u need a domain for hosting?
iirc
sexy got it
for a website not really but looks better
ok
a domain is just a pointer to the ip
also can be used to mask your ip from attacks
the reason domains are a thing is because it's easier to remember lettering than a bunch of numbers
ipv4 is ok but ipv6 is annoying to remember
where can i find heartbeats :/
Yes because google.com is easier to remember than 172.217.2.110
Which redirects to google.com if you are interested
i stucc
I don't mean to interrupt :/ I've struggling to make a simple check, i'm trying to write a command that only Administrators can use and im floundering
What lib
I'm using the discord.js i've been looking at documentation for the past 4 hours
I linked the function u need there
try something like message.member.permissions.has(`ADMINISTRATOR`)
Or .hasPermission works as well, whichever you want to use :+1:
Syntax is && for logical and
it can cause issues if the member is not cached when you use .hasPermissions
So
Soooooo
Sososososo
Better idea to wait for the owner to find the IP if they even have it or look for heartbeats god knows where
OH I KNOW WHAT I COULD DO
Check my mongodb connections
Ok

yo, your fix has fixed literally all of my issues 🙏 thank you kind strangers
how can i see who connected to my mongodb cluster
well shit
message.guild.id and message.guildID both give errors WHY
and there is no documentation on message.guild.id
Your message object is undefined?
No
What error do you get
@earnest phoenix what lib
This is what I did in discord.js and it gives the error:
var guildID = message.guild.id;
message.reply(guildID);
This is basically the same but smh doesn't give errors:
message.reply(message.guild.id);
@earnest phoenix what lib
@golden condor discord.js
It might not be in a guild?
Are you dm'ing the bot
The error is Cannot read property id of undefined
Then you are dm'ing the bot?
No
@wary flame https://repl.it/@code913/codeco-discord-bot
Yes i know my index.js file is filled to the brim with clutter
@earnest phoenix what do you use now then?
I made a hype system for my bot
I tried to make it different for every server
And amazingly failed
So i made it global
Is there a way to check for boost?
Lib: discord.js
Wdym by that @misty sigil
server boost
I mean are you checking how many boosts a server has, who has boosted etc.
if the person is boosting
It should be
2 easy ways would be check the booster.role.members.size
<GuildMember>.premiumSince is better :/
member.premiumSince
@misty sigil yes
It will return null if they haven't boosted and a timestamp if they have
do you want for user or the count for the guild?
for user
how can I add a delete msg command
tried bulkdelete didnot Wokr
did you get an error?
ye
How do I change the background color of the bot long description box?
Without fucking up my markdown
Css
What class do I use? Adding <style>div.content {background-color: black;}</style> didn't work
@honest perch
how to know servercount?
how to know servercount?
@half bison client.guilds.cache.size (discordjs v12)
Hey! How can I use other server emojis on my bot? Like how can I use my server emojis on other servers with bot.
ok
@ember oak if it's animated, then it's like this:
<a :emoji_name: emoji ID >
If it's static it's
< :emoji_name: emoji ID >
Thank you!
Np
Hi guys, can I ask you to add my bot to your servers? (Though empty) For I lack 32 servers to ask for verification from Discord
i dont
Sup it's me
The bot is in Russian, but I plan to add English in the future
can someone please tell me how i can read the exact status of a user
because i tried
and it just returns "CustomStatus"
Do you mean online or offline?
@ripe wadi it's state (I think)
Ahh, I got it
I don't know it myself yet
Sorry, I don't understand English very well
:с
Idk russian well either ><
((This is me to the fact that in my messages I often make mistakes))
x)it's fine
@ripe wadi user.presence.activities[0].state
np
@ripe wadi I'd recommend checking if it's null so you don't add the field
How can you display a list of servers on which the bot is located?
And their number of participants
What library are you using @crystal stream
i use discord js
Is it API aboose to make my bot DM every single user in the server with a "Hi someone added me to your server" when someone adds it to a server
yes
'iS iT aBuzE tO mAsS dM UsERs?'
What library are you using @crystal stream
@sudden geyser discord.js
Look in the <Client>.guilds.cache collection.
does anyone know the documentation or how to make a bot make sound in a vc like octave or rythm
k thnx

can someone tell me why this brackets at the bottom could've been set?
stop using json as a database
why tho? i think it's easy to use
because it isn't a database to begin with
had no problems with it until now, if it works, why should i exchange it?
There are things easier than json
now i understand, thanks
.
I need help: https://hastebin.com/muwicabuyi.js
@earnest phoenix what is your issue?
GuildModel.findOne is not a function
Ah mongoose
im not sure but its possible that it is case Sensetive try Guild
isn't it new Schema()?
also this ^
Wait I'll have a look at my crappy retarded poopoo code
I'm getting the same error: GuildModel.findOne is not a function
you have an error in your code
Are you sure you're connecting to the db
Add a break point
#development message did you try this
#development message did you try this
@pale vessel yessir
ok in your schema is some stuff wrong
Ah
great message about json db
What you're supposed to do
ohh wait your model is fine (guild.js)
const { Guild } = require('./models/guild') // maybe idk it might be a way you're exporting
import it as Guild not as GuildModel

Also it's module.exports
yea forget what i said
i think it's the model.exports ^
Btw any ideas on how to get the IP of my server :/
ask the dude who host it
Offline rn
wait
wouldn't pinging a website that logs the ip work?
since you got a Dockercontainer running a Host Bride
Flaz how?
ping 1.1.1.1 could work
Also it's module.exports
@pure lion thanks that was the problem.
I really appreciate your help guys, thank you. ❤️
Where do I put it? The console doesn't return anything, ever
then rip
Maybe I could use an exec command
if (command === "lyrics") {
const Genius = new (require("genius-lyrics")).Client(
"key")
let Name = args.slice(1).join(" ");
const lyrics = new Set();
if (lyrics.has(msg.author.id))
return msg.reply(
`**You are on cooldown you can use this cmd once in 20 seconds. This is to prevent rate limting**`
);
if(!args[1]) return msg.reply("Tell me a song name")
let first = await msg.channel.send("Loading..Please wait")
Genius.tracks.search(Name).then(results => {
let first = msg.channel.send("Loading..Please wait")
try{
const song = results[0];
song
.lyrics()
.then(lyrics => {
const lol = new Discord.MessageEmbed()
.setColor("RANDOM")
.setTitle(`${song.title} Lyrics`)
.setDescription(
lyrics.length > 1900 ? `${lyrics.substr(0, 1900)}...` : lyrics
)
.setFooter(`Song Creator : ${song.artist.name}`)
.setThumbnail(song.humbnail)
.setTimestamp()
first.edit(lol)
})```
first.edit is not a function?
maybe the message is out of scope
@golden vortex
Hi
How are you
I'm fine, how are you
Fine
did you use github?
Ah shit
yes but did you Uploaded you bot to Github was the question
a
if no idk if you can export it if yes export it and upload it to your VPS
no
You download it as a zip
From GitHub
Extract
Then ?
And upload to github
dont upload the env to github
dont upload the env to github
@lusty quest
How will
I use it then ?
I just move env data to main index
@gray finch
Then u expose it
you can create files with linux
I keep my github private
its a normal OS
No one can touch my files
e
idk how to use linux either
;-;
Why would you need linux lol
How ?
bcs windows VPS are overpriced
How you got it working ?
I did my bot on win 10, visual studio
indeed
Lol free host at heroku
free hosts suck
ok
he want to make the switch to a proper VPS
Mather father manner this ?
Just add a proc file to your github project
ok I export my project to GitHub
Without env
File
Ok ?
Then I do something
In Google cloud
And then how to use Linux for entering my env files ?
I have 2 bots at heroku running on same dyno for weeks
Not even a minute downtime/lag
And they big enough
They stream music into my server, and transfer my minecraft chat to discord and the other way
You can reach 1000 /month if you just add a fake card
And you can create accounts for free
this can get you into legal trouble
No they basically tell you to add a card
No verification needed
And they give you permanent 1000/month
ok
you fake a Offical Payment Card -> can be a Federal Crime in some countries
I put my own card anyway
There are a lot of card ids on the internet just for stuff like this
But for me heroku works and i'm ok with it
They do heavy code 24/7 i'm quite surprised how well work
You need 720 hours in a month
1000 is more than enough
technically it's not 24 hours
Sounds like legal trouble
Why is not 24/7?
restarts every 24 hours
It doesn t
Did you use random card credentials
I said you can, but i used mine
And encouraging it isn't any better still
Yes
They do nothing with the cards on that website
the Card is used for Identification
Yea but the ones on internet are always empty
i have currently about 175 Guilds and use 95MB of ram (use D.js-light)
Oh
@gray finch
ram usage depends a lot on many factors
212 mb of ram for a simple bot for me 448
I literally use a bot 24/7 on a live music to my channel
but my other bot uses 50 mb for 2 servers
d.js-light shaves down a lot on caching
It never disconnect or skip, cause i didnt add functions
but tim can tell you more since he made it
there are bots who use 1gb at 100 servers, and there are bots who use 100mb at 3000 servers
:pog:
How do you check ram?
there are many ways to check ram, on windows you can use the task manager, on linux you can use top or htop, then you can also use a process manager such as pm2, and you can also get it from inside your process, depending on your language, for example node.js has process.memoryUsage()
I dont host it
I use visual studio, and code javascript
but i don t run it from my pc
What do you run it from
visual studio is a editor not a program for running it
Online host
I assume is running on node.js
i dont know about python
ah ok nw
@empty owl any node.js process uses a minimum of approx 50mb
because of the engine itself
if you want to see how much memory your actual code is using, including all libraries and files but not including the node.js process itself, use process.memoryUsage().heapUsed
Got it
if your bot uses voice, or works with images and files, you also need to use process.memoryUsage().external
yo @pure lion pls dms
when you mean files does that include updating sqlite
Error: listen EACCES: permission denied 0.0.0.0:80
u m
Files
@pure lion what did you want to do?
heapUsed includes the code for sqlite, but not the content of the sqlite database
unless you use an sqlite framework or wrapper than caches your database in memory
super, i tried to start the server
port 6969 it is
can u help me to shift my bot
from glitch to google VPS
my membership expires tom
bot will go down
and not get approved
by top.gg
pls*
since you run in a docker Container you are in your case bound to one port unless your host gives you the port you want
@delicate shore
yes?
Is it on GitHub
no
well I think there’s an option to export to GitHub
or something
Then
You can download node and either clone it
or file transfer with winscp or something
also taking 1 day for migrating your bot with 0 knowledge about the OS on your new host is a bad idea
also taking 1 day for migrating your bot with 0 knowledge about the OS on your new host is a bad idea
^
Aren’t most 2 gb ram cheaper than glitch premium
Like galaxygate has 2gb for 5 dollars
you dont need 2GB even. i use a Digitalocean 1GB droplet and just hit 1 GB with 8 Bots one ShareX uploader and 2 Docker container
yea?
normal
the largest one is at 95MB ram
T do you use discord.js light or eris?
d.js-light
alright
but i want to test DiscordGO in the future
Is that pretty much the same as discorzjs v12
Is it possible to just switch to discordjs light without changing anything
there are a few changes compared to d.js V12
since nothing is cached exept guilds you need to fetch users and channels
you can if its cached
fetch caches the fetched channel / user if you dont disable it
but it gives you way more control about what is getting cached and when its released from the cache
yes
Alright I’ll try it out
is the port linked to your Container?
its in home/container
yes but is the port Allocated to your Container
@earnest phoenix did you want to relay messages between Guilds?
the allocated port to the connection is 6969
did your Application listens to the port?
it creates the server and logs "listening at port 6969"
@earnest phoenix this is not as simple. are you familar with a langauge?
@pure lion and in ptrodactyl the port 6969 is Allocated to your container?
yea this is your Application not your container
okay
if it is not Allocated the Host system will not Pass requests to the port into your container or outside of your container
does the ip package have port stuff
idk
https://cdn.discordapp.com/attachments/714045415707770900/736584989704978522/unknown.png how do i make a space
hmmmmmmmmmmm
yes it does
<br> should create a new line
@lusty quest works, thank you
Look in the
<Client>.guilds.cachecollection.
@sudden geyser
Thz :з
can I use a discord emoji as a author icon image in embeds?
@rocky hearth i think you can if you get the emoji image link
@torn ravine So how can I get the emoji image link
internal/modules/cjs/loader.js:960
throw err;
^
Error: Cannot find module 'quick.db'
Require stack:
- C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\index.js
- C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\index.js:15:12)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Harjap\\Downloads\\accurate-thin-mango-2020-07-25_134817 (extract.me)\\index.js',
'C:\\Users\\Harjap\\Downloads\\accurate-thin-mango-2020-07-25_134817 (extract.me)\\server.js'
]
}
PS C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)> ```
i installed code from glitch
and i even did npm install
do install packages
but did not work
@delicate shore use a pastebin service
i even did npm i quick.db
npm install —save quick.db?
npm ERR! arg Argument starts with non-ascii dash, this is probably invalid: [ '—save', 'quick.db?' ]
you have to reinstall all the modules
--save
its just the way iphones types dashes
You should also remove the ? at the end
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
i did
but did not work
still same error
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)> node .
internal/modules/cjs/loader.js:960
throw err;
^
Error: Cannot find module 'quick.db'
Require stack:
- C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\index.js
- C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\index.js:15:12)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Harjap\\Downloads\\accurate-thin-mango-2020-07-25_134817 (extract.me)\\index.js',
'C:\\Users\\Harjap\\Downloads\\accurate-thin-mango-2020-07-25_134817 (extract.me)\\server.js'
]
}```
on wich os?
os?
on windows you need the build tools
what is that
but @lusty quest in package.json everyhting is there
i just checked
"@discordjs/opus": "^0.3.2",
"abort-controller": "^3.0.0",
"asynckit": "^0.4.0",
"canvas": "^2.6.1",
"combined-stream": "^1.0.8",
"covid": "^0.0.1",
"covid-live": "^1.0.0",
"covidapi": "^0.5.0",
"delayed-stream": "^1.0.0",
"discord-jokes": "^1.0.12",
"discord.js": "^12.2.0",
"discord.js-commando": "^0.10.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"fs": "^0.0.2",
"google": "^2.1.0",
"http": "^0.0.0",
"mime-db": "^1.44.0",
"mime-types": "^2.1.27",
"moment": "^2.27.0",
"node-fetch": "^2.6.0",
"novelcovid": "^3.0.0",
"prism-media": "^1.2.2",
"setimmediate": "^1.0.5",
"simple-youtube-api": "^5.2.1",
"tweetnacl": "^1.0.3",
"worldometer-coronavirus-info": "^2.2.6",
"yt-search": "^2.0.0",
"ytdl-core": "^3.1.1",
"zealcord.js": "^1.1.2",
"quick.db": "^7.1.1",
"genius-lyrics": "^3.0.0",
"weather.js": "^0.1.0",
"weather-js": "^2.0.0",
"google-translate-api": "^2.3.0",
"node-superfetch": "^0.1.10",
"cheerio": "^0.22.0",
"twemoji-parser": "^13.0.0",
"figlet": "^1.5.0",
"request-promise-native": "^1.0.8",
"request": "^2.88.2",
"random-puppy": "^1.1.0",
"imageapi.js": "^1.0.5",
"discord-welcome": "^2.0.1"
},
"optionalDependencies": {
"@discordjs/uws": "^10.149.0"```
this all
is installed
you got a ? before name
so?
optional chaining
that means it can be null
yea but in your eval its missing

hmm. on now im confused too
missing?
yea i know
es11 iirc
or node 14
i think it was added on js now
either way
name is not a property from channel?
it is thoe
What are you looking for Lor
Like is your source code good? What do you want to be "good".
tryitandsee
Depends how you start it
why do you have so many
just run
npm install
@sudden geyser in which file
because i ran it 3 times
nothing happend
delete your node_modules folder
should i run it in package.json
Package.json is a file.
Commands run in folders
You should get an alt to do that with @earnest phoenix
Ban commands take awhile to test, you cant expect others to sit there with you
did you got a package.json in the folder?
did you got a package.json in the folder?
@lusty quest yes
@earnest phoenix hand here rq?
Oh hey
hey dude, sorry for ping
It's ok
have you ran into this before?
importing Discord and setting messagea as a Discord.Message type
Hmm what the, that's Suspicious
did you got a package.json in the folder?
@lusty quest i have 2
package.json and package-lock.json
there is something wrong in what you do
kinda clueless now tbh
@delicate shore is your current directory the root directory of your bot? (powershell)
@delicate shore is your current directory the root directory of your bot? (powershell)
@lusty quest wym
like
see the ss
can anybody suggest me a free chatbot api, that can respond to the user?
this is the folder not the Powershell /commandline
google got one
but you need to train it
@opal plank well... Does that messagea.attachments or whatever doesn't error?
i got the problem
nope
i never did npm install --save
its just channel name
now i did
Hmm
and it might work
hi
guys when i do import pygame it doesn't work it shows a error in the console when i start it up with pycharm.
کوردی تێدیە
i had to patch guild and client, but neither showed this error with properties
no
Umm guys you know how if you wanna add a login feature to your website and you get the discord auth and redirect it back to ur web how do I code it to actually log me in?
Auth is a complex subject best read from the discord dev site
( I have pygame obviously installed and it is installed on python but for some reason it sends me a error )
Hmm true
@opal plank idk much about typescript but what does that <message>.channel? with question mark mean
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
hey @lusty quest what should i do i wanna host bot at my end and i keep getting this error
Thanks
Np
Oh
if it tried to read name from channel(but channel is undefined/null) it returns undefined instead of error
What??? how do i fix that error in the "Console"?
its the same as js if(channel) channel.name
Pygame needs to be installed i presume
cause i have pygame installed and it isnt working for some odd reason
is quick.db even available?
@opal plank but it's getting the property of the current channel the message was sent in isn't it?
What is pygame lol
pygame is a python addon that allows you to make games
quick.db is there in vsdc
Is it where you code an actual game?
or not
indeed
Depends on how you start it
@solemn latch i have pygame installed but it isnt working for some odd reason
🤷 I dont know python
pip
@opal plank so you don't need to check if it's null or undefined... Because the channel the message was sent in can't possibly be null or undefined
Lor4nd, does ctrl+c work?
Gtg
rip
well yeah, thats true
i was just trying some stuff to see whats the issue
it gets methods from channel class just fine
but not name

what are you running your bot in?
if it is in a shell, ctrl+c should stop the process
ctrl+c is the copy
@earnest phoenix ctrl + c, closes the session, ctrl + d closes the window
isn't windows build tools installed with vsdc already
hehe
dm indeed i dont think have channel names
yes
now pls help me
but even slapping a conditional there doesnt help if its null
Require stack:
- C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\app\index.js
- C:\Users\Harjap\Downloads\accurate-thin-mango-2020-07-25_134817 (extract.me)\app\server.js```
and either way it should point me out it CAN be null
this is what i keep getting
install quick.db
its simply saying it doesnt exist
@earnest phoenix , right click
How are you running the bot
@opal plank well... Maybe just check like this
if(<channel>) <channel>.name? I have no other possible idea of how else would this be fixed
you're running it on vsc?
you're running it on vsc?
@misty sigil yes
its simply saying it doesnt exist
@opal plank i did npm isntall 100 times!
With terminal in the right dir?
@earnest phoenix
Bruh wtf
its not much of a 'is it there'
conditional should work just like that
its screaming that name isnt a property from Channel Class
With terminal in the right dir?
@solemn latch yes
though it is
just ignore it?
@earnest phoenix your bot should be offline now
Well... This is why i don't mainly use Typescript... 
lmao
im pretty sure, since you already closed the process
i might go harass the people over at d.js guild and see if they got smoe clues
😭
but ty either way @earnest phoenix
i did that also erwin
you need to type cast it or something
sorry for the ping
still same error
channel as GuildChannel/TextChannel
Np lol
erwin i did that still error
Tim's here to save the day
yes
@delicate shore
@delicate shore im not talking to you mate, struggling myself with a Ts error currently
@opal plank wot???
and how to fix that
its in the logs you posted... just read it
ok
you need to install windows-build-tools
how with npm?
do i need to install using npm if not the how
npm install -g windows-build-tools from an admin powershell
this right
alr
thansk
@quasi hearth
@quartz kindle it is stopped here should i close it
anyone know why im getting this error? TypeError: req.next is not a function
the code is just..
res.render('html/signup', { message: 'An error occured, please try again.'});
LMAo
whAt
@quartz kindle @earnest phoenix fixed LOL
🍿 learning time let's go
messagea?

lmao
well req.next is not a function. are you calling that somewhere in your code?
yeah messagea as a different variable
nope
ah its on a promise
its saying the line the error is coming from is 117
in discord.js, how can i know for a given member, who is in a voicechannel, when was the last time he was speaking?
Anyone know how I can fetch someone not in cache? (djs v12)
You'd need to track that yourself id think @viral spade
change ur clients options
Fetch
fetchAllMembers: true
o?
Fetch requests from the api
Yeah
@digital ibex Are you calling res.render multiple times?
no
Its a promise
it's been here for ages
Python takes awhile to install
thats whats causing the issue
Python takes awhile to install
@solemn latch but i had python 3. somehting installed
already
also, i log typeof req.next it says function
ok ill try it with the m => m.user.tag === stuff
!msg.member.permissions.has(['MANAGE_SERVER']) -> Invalid bitfield flag or number.
its MANAGE_GUILD
Python 3 isn't python 2.7
thanks brav
np
im doing it like this though
@solemn latch ^
does it need both?
https://github.com/expressjs/express/issues/4093
Ah. It is likely you are calling res.render multiple times in the same request. ... you can only call res.render once, when you're ready to render the response.

