#development
1 messages ยท Page 1120 of 1
you dont put them in the same location obviously
akdjhgsdkhbkjbksakghsidkgh
location / {
proxu_pass http://localhost:8080;
}
location /peer/ {
proxy_pass http://localhost:9000;
}
like this, every request for /peer/whatever you receive, will be sent to port 9000
am i supposed to do something else for it to listen?
just went to /peer
nothing was logged
o h
it should generate a /peer/unique-id-here url
u h
Can I add a try catch to this event.bind so that I don't have to put it in every event file?
else client.on(name, event.bind(null, client));
oh no
im back to the mime typing error
even though i already have the static folder set up
timWatDo?
its looking for ale-bot.xyz/peer/script.js
@opaque seal the only way would be something like this ```js
client.on(name, async (...args) => {
try {
await event(...args)
} catch(e) {
// do something
}
});
// server.js
app.use(express.static('public'), express.urlencoded({ extended: false }))
im so confused and tired
aaa
make a peer folder and put script.js in it
oh hey guess what
ssl error
eyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
although it wont work if the file is being served by pot 8080
thats my node app tho-
yes
when i do node server.js it starts both servers
https://ale-bot.xyz see if you can see what the issue is
check this
Can I listen on more than one port at once?
yea
not on the same app no
@earnest phoenix tysm for that suggestion. The whole private channel for links, and linking in a command that returns an embed with the link looks great!
how can I rotate specific image with canvas
https://cdn.discordapp.com/attachments/712064846325219432/740718650561921054/as.jpg
I want to rotate my avatar
might help
lemme fix that 
nice lool
Vs code
Website? Why?
i wanna attempt to make a bot ๐ ๐
Then learn a language
Yes
Do you know what programming is?
You need to learn a programming language
link please ._.
Try java script
mk
JavaScript is a beginner friendly one
look some tutorial and then look discord.js
oh
Just google learn javascript
okay
owo
Meh, also im new coding bots
But no copy code, use as examples but never copy
Just make you more dumb
Also dont use programs
lol
And websites...
ee
i tried botghost once and i just kinda sat there wondering what to do
lmfao you to! ^^
:)
do you like k-pop?
Korean pop?
yea!
how do I check my discord.js version?
idk
Well i dont hear but i cant say is bad
how do I check my discord.js version?
@vernal basin check package.json
Then search discord.js
so you never listened to it?
Well yes
oh
and no matter how many times i reinstall it won't download v12
it just keeps updating to v11.6.4
-servercount
To have your bot's server count displayed on DBL, please read the documentation on server/shard posting. Click here to see the docs.. You may also find #312614469819826177 useful; however it is strongly discouraged as most of the examples are extremely outdated.

message.guild.members.cache.find(mem => mem.id == user.id); is a v12 thing right
Managers are a v12 thing yes
because it's telling me .cache is undefined
The djs guide has a page for breaking changes, i reccomend taking a look
So lets say there's an api like api.google.com/search?term=
If i put lol works if i put LOL doesent
Instead on google chrome works either way
Then convert it to lowercase
^
Non sense because some terms are uppercase and some lowercase

So
Lets say i need to search "lol" on dictionary but the correct term to search is "Lol" its annoying that it doesent work
But on chrome does work
Then convert it to lowercase
Letter per letter if is posible
okay so I'm still baffled as to why this no longer works
collector.on('collect', (reaction, user) => {
if (!user.bot && !playerArray.includes(user)) {
guildMember = message.guild.members.get(user.id);
}
})
guildMember is turning up null, I've tried message.guild.members.cache.find(mem => mem.id == user.id) but none of these work
Letter per letter if is posible
@dire obsidian u mean use the api with all the possible ways?
And this api is...
okay so I'm still baffled as to why this no longer works
collector.on('collect', (reaction, user) => { if (!user.bot && !playerArray.includes(user)) { guildMember = message.guild.members.get(user.id); } })guildMember is turning up null, I've tried
message.guild.members.cache.find(mem => mem.id == user.id)but none of these work
@vernal basin
you're just looking through the cache, use the fetch method on the manager
Urban dictionary unofficial api because the official one is quite shit as links are put in brackets
wait I've never used a manager, can you direct me to where in the docs the fetch method is, I cna't seem to find it under guildmanager
ahaha wait guildmember manager, nvm
you're using it in that snippet relay
yeab
How is it "shit" though
@slender thistle ill show u wait
yeah
args.join("+")?
How do I use a ping to get a user?
Message.mentions
for say "!id @harsh moon "
fuck]?","thumbs_down":240},{"definition":"It's original definition was "Laughing out loud" (also written occasionally as "[Lots of Laughs]"), used as a brief acronym to denote great amusement in chat conversations.\r\n\r\nNow, it is overused to
U see the brackets
..
welcome to REST apis
Lol
we use JSON in modern api development
it's not 2008 anymore
I wish it was 2008
Thats why i told u its shit
to you it's shit because you're incompetent to understand what is JSON or what REST even is. JSON is a standardized info exchange format in REST
as to where it comes from - js
Then to me its shit i guess lol
okay wait I'm actually still bamboozled
message.guild.members.fetch(user.id);
throws an error saying .fetch is not a method
am I being bamboozled by my version somehow?
message.guild.fetch_member(Id)?
yeah, it's an id
collector.on('collect', (reaction, user) => {
if (!user.bot && !playerArray.includes(user)) {
guildMember = message.guild.members.fetch(user.id);
}
})
@placid iron don't blindly suggest things you're doing the opposite of helping
Damn sorry
I think there might be an issue with the user part of the reaction collector
because the bot itself is making it past the !user.bot condition
reinstall d.js i guess
fetch shouldn't be undefined
it's a part of v12
ye
I mean
It's original definition was "Laughing out loud" (also written occasionally as "[Lots of Laughs]"), used as a brief acronym to denote great amusement in chat conversations.\r\n\r\nNow, it is overused to the point where nobody laughs out loud when they say it. In fact, they probably don't even give a shit about what you just wrote. More accurately, the acronym "lol" should be redefined as "Lack of laughter."\r\n\r\nDepending on the [chatter], its definition may vary. The list of its meanings includes, but is not limited to:\r\n1) "I have nothing [worthwhile] to contribute to this conversation."\r\n2) "I'm too lazy to read what you just wrote so I'm typing something useless in hopes that you'll think I'm still paying attention."\r\n3) "Your statement lacks even the vaguest trace of humor but I'll pretend I'm amused."\r\n4) "This is a pointless acronym I'm sticking in my sentence just because it's become so engraved into my [mind that] when chatting, I MUST use the meaningless sentence-filler 'lol.'"\r\n\r\nSee: lmao, lmfao, rofl, [lawl], heh, haha, [lolol], and 120 for similarities.
This is the parsed
{
"key1" : "value1",
"key2": "value2"
}
After parsing the JSON, json["key1"] to get value1
I use event.bind to assign my functions to the events of discord.js and it was suggested to remove dublicate event listeners, how can I remove the default event listener?
client.removeListener('channelDelete', null);
damn that sucks
Can anyone help me with making a HTML description for my bot please
okay I'm now running into an issue where it seems like my powershell is running a previous version of the code? I've tried deleting and recreating the file but it keeps running a piece of code that no longer exists, and throwing an error on it
wait, I'm actually being BSed now
I've copied the entirety of the code into a new file under a completely different name, and it's still throwing an error at a nonexistent spot in the code
a spot in the code that has never existed because this is essentially a new file
I'm so confused
(I have tried reinstalling discord.js and it still is being a pain)
it used to be there from an old thing that i copypasted
then when i updated, it stopped working for some reason
so i remove it
and then when i try to rerun it still thinks it's there
(ping me if someone has anything please)
does anyone know how to make a bot delete channels? making a bot that will implement server templates
channel.delete pretty sure
ye
ight ill test that
and also relay
im not sure
and im not trying to be rude
but have you looked for an error within the token of your bot?
arent server templates already a thing
yes
but have you looked for an error within the token of your bot?
@eternal flame @vernal basin
it's not a token thing
ah
the location in the code currently isn't even a bracket
Just to make sure(it happens more than you'd think)
Did you save the file?
yo, just channel.delete didnt work, i need to imput a command in a channel and have it delete that certain channel
let questions = [
{
title: "Trivia command",
options [Javascript/Typescript","Python","Rust","Ruby","],
correct: 1
},
{
title: "Trivia command",
options: ["int.engine","ms","ws","discord.js"],
correct: 3
}
]
module.exports={
name: "Trivia",
description: "Testing",
category: "fun",
run: async(bot, message, args)={
let q = questions[Math.floor(Math.random()*(questions.lenght))];
let i = 0;
const Embed = new MessageEmbed()
.setTitle(q.title)
.setDescription(q.options.map(opt=>{
i++;
return `${i} - ${opt}/n`
}))
.setColor(`WHITE`)
.setFooter(`Reply to this message with correct answer! You have 20 seconds.`)
message.channel.send(Embed)
try}
let .msgs = await message.channel.awaitMessages(u2=>u2.author.id, { time: 20,max 1, ["time"]})
if(parsInt(msgs.first().content)==q.correct){
return message.channel.send(`You got it. Nice bro!`)
}else{
return message.channel.send.(`You got incorrect lol! Try again next time.`)
}catch(e){
return message.channel.send(`You did not answer what a noob!`)
}
}
}```
How to work this?
also replace lenght with length
can you at least attempt to provide details
His bot is in trouble theres no time for details
The top.gg docs
@vernal basin is spammer
you haven't answered my question
you came in here, begged for help, spammed me with "please help no time for chit chat", and quite frankly it's not worth my time helping someone who acts like that
Dude
If people dont need your help
why they ask you
because they need your help
^
we can't help you if you don't even attempt to show your code or give us a spot to start helping
Our magic mind reading powers are not that great
XD
^
btw @solemn latch do you know if the node_modules folder somehow saves source code and runs that instead?
I've tried doing complete clears of all my file folders
issue still persists
You can delete your node_modules entirely if you want
You've restarted the program since you changed your code right?
yes
Maybe a bit silly, but have you restarted the system
What command are you running to start your project?
node
Node .
?
node filename.js
And the file is empty?
the file is not empty, it does have code i nit
in it*
but not the code that it's throwing an error for
does my bot have to be hosted before they review it?
it just has to be online
they will skip it if it's not online at time of review
skip as in it gets rejected so you'll have to wait in queue again
btw Woo, I moved out any other files that might be interfering with it, and the isolated file itself still throws that error
And the error is giving the correct file?
how do i get if my bot has a certain permission using discord.js
The file your running
Whats at the line the errors at?
line 8, column 15
Guild.me.permissions.has iirc
ok
it says cannot read property of me undefined
Guild you have to get yourself
because the } catch { is definitely my code
and I don't know anyone else who writes spaghetti code like I do
so I don't think it would be an issue with a file that isn't mine
Yeah I just was making sure
๐ค
Line 41 of client.js
Is } catch {
i've reinstalled like 3 times now
which node version are you on
ok so weird thing
I deleted my travis cache for a github site right
well the issue is, i go to have it build a new commit and its pulling from a cache I deleted
has anyone had this happen, if yes, how the hell did you solve it, i've been sitting here for almost 30min trying to figure it out
node โv
well yeah, that would be the issue then
node version has nothing to do with package.json
oh you were looking at discord.js's version
yeah d.js is on version 12
to run it you need to be on node 12 or later
I think I am on node 12...?
When you did node -v ?
everytime i reinstall it says + discord.js@12.2.0
That's d.js's version
Node is not discordjs
but node-v tells me 8.11.3
Two seperate things
yes, node has a different version than d.js
ah wait
isnt node 8 fucking museum stuff?
i think im on node 15 or something
Its what apt install node gives you
14.6 *
discord.js v12 requiring node.js 12.0.0 or higher btw
I'd use node version manager
allows you to easily manage multiple node versions
like how python has stuff for python3 or 2.7
For some reason it stopped getting updated, so people often show up with v8
what's the command to reinstall node?
because both are still often used
use nvm
just update to latest and fix what breaks heeheh
you have to do several commands
what's the first one
Depends on your machine and method iirc
Good to know that's what djs does when outdated versions of node is used
Yi
Yo
My code is not working properly
https://raw.githubusercontent.com/rmon-vfer/notYandereSimCode/master/Assembly-CSharp/StudentScript.cs
go to #memes-and-media
is this your code
Any idea about this? (discord.js)
0|zbot | 1: 0xa08900 node::Abort() [/usr/bin/node]
0|zbot | 2: 0xa08d0c node::OnFatalError(char const*, char const*) [/usr/bin/node]
0|zbot | 3: 0xb7ef5e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
0|zbot | 4: 0xb7f2d9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
0|zbot | 5: 0xd2ba45 [/usr/bin/node]
0|zbot | 6: 0xd2c0d6 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/bin/node]
@summer torrent uh the commands they provide to download the script both don't work for me for some reason
you ran out of memory
One message removed from a suspended account.
"heap out of memory" @crisp geyser
like the error says
One message removed from a suspended account.
"bash" is not a recognizable cmdlet
-.-, I know what it says
or script
One message removed from a suspended account.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
@vernal basin https://stackoverflow.com/questions/42438587/bash-is-not-recognized-as-an-internal-or-external-command
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
I'm trying to ask if anyone knows how to increase the heap memory
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
hm, you sure that's the issue? I have 4gb ram and I'm using 3.1
oh my god
One message removed from a suspended account.
One message removed from a suspended account.
3.1gb
One message removed from a suspended account.
how big is your bot
One message removed from a suspended account.
2k guilds
One message removed from a suspended account.
thats a shit ton for 2k
One message removed from a suspended account.
One message removed from a suspended account.
2K guilds and 3.1 GB ????
How did you use 3.1gb with 2k guilds
you should be using at most at most 750mb
One message removed from a suspended account.
500k users per guild
use intents
even with d.js thats a lot
One message removed from a suspended account.
One message removed from a suspended account.
either you have a memory leak, or your code is really shitty
I think I'm storing too much data in cache to avoid querying mysql
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
use a different library / use a more performant language / upgrade your server specs
or
use intents
optimize your code
Read on medium that node.js processes are limited to 512mb ram
Is that possible?
(that could be increased with --max-old-space-size=1024)
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.
thanks for the useful info dad
One message removed from a suspended account.
that quote was from john adams btw
sorry mom
Your making a new paragraph with a class
@solemn latch then how to do it
not like i had to reinstall node.js 5 times
how to get info in support server whenever someone votes the bot
how to get info in support server whenever someone votes the bot
@surreal notch use DBL Webhooks
wooo
now i will recieve whenever someone votes @crisp geyser ?
I did but didnt recived anything yt
You added a discord webhook there? lol
โน๏ธ
You use . For class
someone can tell me what to put in url section
o]
I am not good at css, id just google it
and what to do with token there @solemn latch
how can i make it bold tho
@delicate shorecss font-weight: bold;i think
np
The docs explain things pretty well imo
Oof
url
i think you should move to #topgg-api , this channel is for bot development
ok
hi
I've run this code
elif data.startswith('imperio'): if len(message.mentions) > 1: await message.channel.send(f'You can only curse one person at a time {message.author.mention}') elif magic.user in message.mentions: await message.channel.send(f'You can\'t curse magic becuase magic itself is curse, {message.author.mention}') elif not message.mentions: await message.channel.send(f'Mention somebody to curse {message.author.mention}') else: for member in message.mentions: name = member.name avatar = member.avatar_url memberid = member.id break Ctx = data.replace('imperio '+'<@'+str(memberid)+'> ','') await message.channel.create_webhook(name=name) await discord.Webhook.send(Ctx,username=name,avatar_url=avatar)
but it is throwing an error Ignoring exception in on_message Traceback (most recent call last): File "C:\Users\Manoj Kumar\AppData\Roaming\Python\Python37\site-packages\discord\client.py", line 312, in _run_event await coro(*args, **kwargs) File "G:\Innovations\Magic\Hogwarts\Discord\magic.py", line 308, in on_message await discord.Webhook.send(Ctx,username=name,avatar_url=avatar) File "C:\Users\Manoj Kumar\AppData\Roaming\Python\Python37\site-packages\discord\webhook.py", line 756, in send if self.token is None: AttributeError: 'str' object has no attribute 'token'
does anybody know about this
@everyone please somebody help me out
that everyone ping tho
sorry for pinging everyone

how do permission overwrites work? do they just completely reset the permissions before making changes? If so, how can i keep the current permissions and just edit
will this work
Overwrite = discord.Permissions.overwrite
Overwrite.read_messages = True
I'm using discord.js so I don't think so
me too
guys there isnt any good command handler bot on github or something, youtube dont help
also the discord.js guide
and yes, im on this like 2 days
The djs guide command handler is fine
yes, but i want make a ./events
also ./commands/other
like that
because
look at this, everithing is just like this
The difference here isn't the command handler, but the way things are structured
Id look at fs, rather than looking for djs specific solutions
do anybody have link for permissions overwrite py documentation
Hey everyone!
So recently my discord.py bot hosted on Heroku for many years went offline suddenly. I hadnโt changed anything about the code (that had been working with Heroku for many years before) leading me to believe that it was an issue with Heroku.
I reached out to their support and got this message.
Iโm not really sure how to interpret this. Please let me know if any of yโall have any advice on what to look into.
I can also send pictures of the error log if needed.
Thank you all so much!
Everything on the page can be @delicate shore
@gilded dawn which buildpacks did you use??
@gilded dawn you need to upgrade your buildpack
Everything on the page can be @delicate shore
@solemn latch by same mehod
Yeah pretty much
ook
@solemn latch i know how can i change color of button but to select that class same method only ?
@wanton anvil Iโm using the python build pack on Heroku if thatโs what you mean. How would I go about updating that?
Whatcha mean? Like all the buttons under the same class?
are they?
@gilded dawn change the version number of discord in requriements.txt
Some buttons share classes
Tags and a few title buttons are different
kk
nothing
Error - node:729) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
Code -
name: "slowmode",
category: "utility",
description: "Set the slowmode for the channel!",
run: async (bot, message, args) => {
if (!args[0])
return message.channel.send(
`You did not specify the time in seconds you wish to set this channel's slow mode too!`
);
if (isNaN(args[0])) return message.channel.send(`That is not a number!`);
let reason = message.content.slice(
bot.prefix.length + 9 + args[0].length + 1
);
if (!reason) {
reason == "No reason provided!";
}
message.channel.setRateLimitPerUser(args[0], reason);
message.channel.send(
`Set the slowmode of this channel too **${args[0]}** with the reason: **${reason}**`
);
},
};```
You can edit multiple selected things like this
.class1, #id {
}
Would modify .class1 and #id with the same css
ik but how to define it
;-;
ยฏ_(ใ)_/ยฏ
@wanton anvil this is what I have right now for the version number. discord.py==0.16.12
@gilded dawn is that latest version??
yes i tried
where can I see where the latest version is for discord.py?
just a sec please
ok thanks
The docs will typically tell you all versions, or atleast the most recent
what the heckklk
@gilded dawn I've got that error once I upgraded my package it seems to work properly now but I am not getting the version now
erm, not the right channel, i guess
o
@wanton anvil this code is from two years ago. should I update to the latest version?
yes of course
is this the documentation y'all were talking about https://discordpy.readthedocs.io/en/latest/
@wanton anvil @solemn latch
o
@viral iris [Click Here](Link Here)
Hey thank you so much guys. I tried updating discord.py but it seems that my other requirements aren't compatible with discord.py. this is what I have in requirements.txt rn. how do I figure put what are the most recent versions of everything and what requiriments.txt should look like?
@trim saddle I created a webhook already
remove the versions and try again
a webhook link has the info
how to get it
what should I remove
ok so I should just have discord.py in that page? and none of the other stuff?
yeah, but don't list the same requirement multiple times
what should I do after copying webhooks url
ok so I did that but i got this error when I was deploying it not sure why
one sec gonna send pic
Hi. I need help with setting up the DBL voting webhook
No wait wrong chat.
Might aswell, anyone know how to improve response times with Lavalink?
your bot
my bot
@delicate shore what about it
@delicate shore
very usful
Might aswell, anyone know how to improve response times with Lavalink?
ok
who pinged me
everyone did
@delicate shore what about it
@torn ravine my bot || is a bot ||
|| i wa supposed tiosay it in #general ||
oh
โ Code is like humor. When you have to explain it, itโs bad.โ lol
does anyone wanna send me level system Quick.db code?
a. Donโt spoon-feed or attack beginners.
owh
help
Help
Python is ๐ฎ
Thatโs opinionated @surreal notch
al languages are good as long as you know how to utilize it
how to set color in discord embeds i have tried many things it throws error saying invalid form body
use decimal number or hex (0xffffff)
why is color an object
ok good
what string
Is that dpy
k works
@pure lion no
thx
Eris?
own idot
idot
O w n
base
ya, connect to the ws directly
O shitttt
one thing
I wanna do that now x)
is white allowed?
ya
iirc white is bugged
it became no color
makes sense because discord
ok leme try something else then
Just do something really close to white
#fcfcfc
yes blue worked lul
time to make a stupid workaround for a stupid thing bcs the thing that should work doesnt work
for (var j = 0; j < array.length; j++) {
datasetValue[j] = [
{
label: `Option ${j+1}`,
data: [0,array],
// The color of the line (the same as the fill color with full opacity)
borderColor: "rgb(61,148,192)",
// Fill the line with color
fill: true,
// Blue color and low opacity
backgroundColor: "rgba(61,148,192,0.1)"
}];
}
``` this gives me a Configuration for Chart.js (wanted it to be dynamic) the Output is correct but chart.js doesnt take it. time to make a stupid workaround
was there an api outage last night?
Welcome to Discord's home for real-time and historical data on system performance.
how can I send a message from a user in channel without mentions if there are mentions in it
like I sent @Manoj Kumar hi
but bot should only return hi
please somebody help
Hmm
hmm?
So if I was like
@rauxs hi @rauxs
the bot would return hi?
Just make it so it deletes mentions ๐
that's what I am asking how
I am not good at coding but in basics that seems like the most obvious choice
ahhh
I have no clue my friend. You can try looking at https://discord.js.org/#/docs/main/stable/ to find if anything there caters to your need, sorry I couldn't help more
@wanton anvil teams can be made from discord developer portal
can anyone help me with building a bot server?
for my bot?
@earnest phoenix Could you elaborate on that?
owh sorryt
Hello peeps
Is it correct channel to get some advice
for things related to top.gg?
it will be added to this server too?
@coarse hearth Only if it get's approved
yes finnaly i know why ive had this issues with chart.js and barcharts
@delicate shore so the link is not workiing right
#support
@lusty quest it's related to my bot page
@delicate shore so the link is not workiing right
@coarse hearth it's not
#support
@lusty quest and for suggestions andidea
ideas
oh ok
who tf did you now wanted to answer with this?
suggestion and ideas idk. ask in support
๐คข
:(
ook
maybe he likes light mode
^, yeah i can't read it
The bg
ook
That's also possible
transparent
need to change the colors. a little more alpha to see them better
<html>
<head>
<style>
body {
background-image: url(https://cdn.glitch.com/d627e943-fbaa-4cab-abab-a4178d6f915d%2Fcool-background%20(1).png?v=1596702655930);
}
.bot-description{
text-align: center;
color: white;
font-weight: bold;
}
.bot-name{
text-align: center;
color: white;
font-weight: bold;
}
.atag{
color: black;
}
.botpagebutton{
color: black;
}
</style>
</head>
<body>
//rest code```
the code is not working
what am i doing wrong
and don't worry about name
and desc
i corrected it alredy
#development message
Hep
H e p
-dotpost
Please do not post dots to clear your messages/get attention. It adds absolutely nothing to the conversation and just causes spam.
If you need to get attention, then say hello everyone. If you need to clear your messages, then press the Esc key. If you do not follow these instructions you will be muted.
hey guys im using the discord bot maker app how do i make it so that for example i command something and i want the bot to give me a option where i say A or B which has a certain following message. i want to make a story like this, almost like a type game yaknow?
hello everyone
hi
how can i make a program that will detect user inputs from one machine and transfer (andd execute) the input. And vice versa (even simultaneously)
i just want you guys to tell me where to start, to have some of an idea about what/where to research
or if saidd program already exists
what i have in mind is teamviewer without the screen sharing, and it works both ways
Asd
How do I split input into two variables?
Example : ;vote lmao choice 1 | lmao choice 2
I want to split it into two variables by |
@mild flower what library do you use?
js
@mild flower use .split("|");
spoonfeed...
that wasnt what i wanted but ok
i soon feed you with my spoon
What do you want then?
" | " is another option
how do i make it temporarily (so yes and no can be used later again) command message to my answer
you can use by iterating the array
variable = array[0]
.split("|")[0] for example
like array[0], array[1], etc
oh
@ministry.command() async def create_team(message,Name): Overwrite = {message.guild.default_role: discord.PermissionOverwrite(read_messages=False), message.guild.me: discord.PermissionOverwrite(read_messages=True)} Author = ministry.get_user(message.author.id) await message.channel.last_message.delete() await message.guild.create_text_channel(Name,overwrites=Overwrite) Channel = discord.utils.get(message.guild.channels,name=Name) await Channel.set_permissions(Author,read_messages=True,send_messages=True) await Channel.send(f'Welcome to {Channel.mention}') can anybody say me what's wrong with my code
let votechoice = message.content.split('|')
this work?
Hey hey, I got a MySQL question (once again).
This is my mysql query: INSERT INTO birthday (bdUser, bdDate) VALUES (?, ?) `, [message.author.username, editedmessage]);
I wanted to replace bdDate if bdUser already exists (tried with ON DUPLICATE KEY UPDATE but I couldnt get it to work)
wait how do i use args from an array
wdym
that badic j
...
me?
did you sign the array to a variable
go to w3schools @mild flower
avtually we aint wasting ur time, you need to learn
was it correct tho
are you new to js?
guys does the software i mentioned above exists in some form? or do i need to write it?
@radiant kraken yes he is
try learning javascript programming first before jumping to discord.js
ok i found it
guys i need a software that can detect my mouse/keyboard movements/inputs and execute them on another
and vice versa
...
That exists iirc
i searched but couldn't find
why are you chatting in bot development tho
You can use your mouse and keyboard across on another pc
i once had an issue about something other than bots and some mod told me to write it in development @mild flower
@golden condor but does it support vice versa, and does it send the screen like teamviewer etc?
guys i just want to find/make teamviewer that does not send the screen (so saves a huge lot of internet) and that can work both ways?
can you tell me if said software exists already (i couldn't find it) and if not
can you tell me what do i need to know/learn to code such program
I think TeamViewer or anydesk supports it
do they have an option to do connect without sharing the screen?
le bruh this close to greatness.
how do i exclude ;vote from it
you can use .replace(a, b)
Split it at "vote"
.split('vote')[1] also works
split with spaces, removze the first element of the array and re join
.split('vote')[1]also works
^^^
you forgot to reassign that as a variable
wdym
i work currently on a Poll bot Too, to fix this i use a different aproach
Suuuup
Peerjs isnt working please help me basically idk the issue
There are no errors and I'm pretty sure I set it up correctly
if it doesnt work and there are no errors its usually a setup issue
Also I'm passing da shit
Through nginx (and the port it uses)
But when I try to go to ale-bot.xyz/peer it redirects to /peer/ and says "cannot get /peer/" so more confuse
if(args[0]) return message.channel.send(stuff)
why dis sending everytime even when the args are not 0?
Args[0] = usually command name
unless you're me
Cleremy any ideas of my issue?
no
Fuck
I use bootstrap
Broo really? :O
better than learning html and css
Show the def of args
if(votechoice[0]) return message.channel.send(Evote)
same thing happen when i use a var
What is args
use .length
have you tried it?
Console log args and you'll know



