#development
1 messages · Page 525 of 1
ik but would I need to include https or something?
Is the IP, the IP of my VPS and the path? Idk what that is meant to go to
A Path to what file?
😦
Would I section them both off with a /?
So http://my.ip.here/root/SkillBot/bot.js?
😂
??
@hollow fulcrum thank you i used tmux and it works.
soo ehm...
Bot(s)Owner|Callumok2004Today at 10:37 PM
--eval client.message.send("test")
[--] CatManiaBot 🐱BOTToday at 10:37 PM
TypeError: Cannot read property 'send' of undefined
ye somehow, but how
xd
what could i do to fix this
message is broken, but the event is ok
and my handler is grand
something must have changed
while i was messing with enmap
but whats wierd is some commands work, with message.channel.send, and others do not
all should work with message.channel.send
its just your code thats broken if it doesnt
so I've ran into a problem, this is my json file:
{
"token": "",
"default_prefix": "-",
"response_string": {
"success": ":white_check_mark:",
"error": ":x:"
},
"owner_ids": [],
"home_server": 0123,
"patreon_reward_roles": {
"tier_1": 1111,
"tier_2": 2222,
"tier_3": 3333,
"tier_4": 4444,
"tier_5": 5555
}
}
unfortunately, when I try to open the file and parse json content in it, I get this message:
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 9 column 18 (char 212)
"home_server": 0123,
That number starts with a 0
can't have a number starting with 0 :P
huh
since json
I recommend https://jsonlint.com/ for finding json errors, Python's json error reporting is dumb
JSONLint is the free online validator and reformatter tool for JSON, a lightweight data-interchange format.
well ok, thanks
can you safely put a number into the negatives in js?
like if a user has 20$, can i do -30 and it'll sit safely at -10
@keen drift do you know fishy
lol
which lib
@kind nexus discord.NET ?
i think regardless of your lib you should be able to access a Context object that contains a Message property
From that Message property you should get a Channel Property probably
bread: NaN,
^^^
items: 2
},
current: {
bread: NaN,
items: 1
}```
how can i fix this in my rdb query?
current: { bread: (parseInt(u.current.bread) || 0) + returnBread, items: (parseInt(u.current.items) || 0) - amount }```
thats what i'm passing through
anyone know if attaching PNG data and embedding it is likely to load any slower or faster for users than embedding a URI to a PNG?
@worldly steeple depending on your bots internet speed, uploading can be as fast or slower
but im talking about loading for users. so when the message from the bot appears, there is a delay before the image is visible to the user as discord propogates it around the CDN. external URIs and uploaded data are treated differently so im wondering if either tends to get to the user more quickly
either, it depends on the users speed
all you need to worry about is how you do it, since images, embedded by attachment/url or not, will load based on the end users speed
subjectively im seeing embedding URIs seem to load more quickly and they both come from different URIs so it doesnt just depend on the user, discord's infrastructure is a factor too
im wondering if anyone knows any details
embedded URIs get proxied through https://images-ext-2.discordapp.net and uploaded data comes through https://media.discordapp.net/
https://www.npmjs.com/package/window-size uh should i use this
why though
so there is a way to say that a package can only be installed globally to work right?
like clis
theres a thing you can put in package.json to do that but i forgot what it is
why no work code eris on node.javascript version number 0.1.14?!!1!??
please give help @everyone
lol
Why do you keep trolling after mods warned you in general
the first part was gonna be sent in offtopic but it was too late
posting other code in #memes-and-media
Deciding to make an auction system where you can sell images/text in an auction that's public and you can get tacos (my bot's currency) to do that. How can I do that.
I use JSONs to make the bot remember stuff!
[I'm using discord.py]
json database
oh no
you should use a real database
maybe an sql one
idk python nosql databases
json files are good for storing static information
@winged shell
"So tired of people just saying "json is shit".
JSON isn't shit. JSON is an awesome format for exchanging small bits of structured data between processes, or to and from an API, especially if you're using javascript on either or both sides. It's a great exchange format. JSON is also great when doing small configurations files - for your tokens and passwords, and data that doesn't change.
But if you need a way to store temporary data that changes constantly, then JSON is the most horrible way to do so. JSON files can be corrupted super easily but concurrent read-writes will most definitely completely fuck it up. So JSON isn't shit. Using JSON as a database is utter garbage." - evie
that should explain it
You could use sqlite3
I prefer nosql databases so I use mongodb
I have a general question about how node.js works
When I have a variable set to something in my main node file, that variable is dynamic, and information is somewhat permanently stored there?
json is for static
when you store a variable in your main node file it will persist until the process exits
if theres a function where the variable is local within it, it will obviously be reset when the function is completed
tldr it isnt permanently stored but for as long as the process is running
Can somebody tell me how to use CSS to edit the bots page like changing the text color?
Any examples?
for those who have bots upper 5000 to 10,000 servers, how much does it cost to pay for your VPS monthly?
always wanted to ask that
@earnest phoenix i pay $25 for mine and i'm at about 4k servers, tho i host a couple other things and such so i use other parts
@earnest phoenix ```html
<style>
.something {
color: #000000;
}
</style>
rest of your desc..
ew no
are you saying you can host a 4k bot on glitch

@sick cloud Can you tell me something how to change the page's background
any examples?
body {
css here
}
I think I'm paying $40 atm
ok thanks
When showing usage for a command, how do you denote exclusive arguments
Like it has to be either or
should I do background-color:color; for example?
background: hex;
@echo pumice however you want lol
thanks
<mention> or <password>
Is there really no standard lol
Although I guess it's bad practice in JS to do things like that
What do you mean by split
<name> [optional user] {mention | id | tag#0000}
Oh that's a good idea
split as in |
How do you get a user from tag#0000
how can I change then buttons color? @sick cloud
lol
What part of the user class gives you the discrim
ok
uh
Thank you so much for the answers! Although my bot doesn’t have that much servers I’m actually terrified about how much it cost to pay for that much of servers
isnt that plain obvious
Idk
@earnest phoenix just be more weary bout cpu and mem usage
does the donations covers at least some of the costs?
if you guys receive donations
never got a single dollar
5gb ram
Why is discriminator a string
why wouldnt it be?
I honestly don't know what it exactly is
The documentation is somehow descriptive yet vague
And I'm too lazy to put it in my code to figure it out lol
if (typeof thisArg !== 'undefined') fn = fn.bind(thisArg);
^
TypeError: fn.bind is not a function```
Anyone know how to fix that?
Nvm fixed it
Actually I don't understand JS enough to give help
I found the issue
What is it?
What was it? In case it ever happens to me
I've had some rough times with recursive binding already
I've gotten fn.bind issues before even though I didn't use fb.bind
Nah I was trying to use a function for the wrong library
Before I discovered the wonders of arrow functions
So when it tried to run that it just was like the heck you doin
yes what the heck are you doin xig
Being a dumb ass 😩
Can somebody tell me why does this dont work?
div.logdescription {
background: #6666ff;
}
oh nvm I typed the long desc wrong
@earnest phoenix Patreon is covering all my cost atm
thank you for the answers ^^ last question, would anyone have any general advices for bot going through 1000 servers? Should sharding be early or wait until the bot reaches 2500? Thank you!
Early, way early
I started to shard around 200 guilds
By the time you get to 2500, you have too much to deal with and not enough time to write, test and deploy things
My bot exploded around 1k guild
but thank god I had sharding implemented early
how to like make the css in the bot description have a lil animation
anyone able to help with my leaderboard? it won't work at all lol
const bakeries = await msg.client.r.table('bakeries').orderBy('current.bread').limit(10);
const top = bakeries.sort((a, b) => b.current.bread - a.current.bread).splice(0, 10);
const embed = new MessageEmbed()
.setTitle(`Best bakeries`)
.setDescription(`Showing the top 10 users with the most bread globally.\n
${bakeries.map(b => `${bakeries.indexOf(b) + 1}. ${b.nickname ? `"${b.nickname}" (${msg.client.users.get(b.id).username || msg.client.users.fetch(b.id).username})` : `Unnamed Bakery (${msg.client.users.get(b.id).username || msg.client.users.fetch(b.id).username})`}, ${b.multiplier}x with **${b.current.bread} bread** 🍞.`)}`)
return msg.channel.send({ embed: embed });
Provide a dump of bakeries
nice
^
RangeError [EMBED_FIELD_VALUE]: MessageEmbed field values may not be empty.```
Am I retarded or smth
is the content empty
No cause it sends the message

It literally sends the edited messages in the channel and then it crashes
add a fallback

oldContent || 'None'
newContent || 'None'
oh
is it reacting to its own message
the embed is sent with no message content
?
thats it probably
Yes it is
since when did it send a message update though
discord.js 
lmao
Thanks

😩
ig u should read https://anidiots.guide/understanding/sharding
im confused
@earnest phoenix just make a sharding file and put ur bot main file there
thats it
You only need 5 lines or less
someone said ascii art?
https://adm.energize.earu.io/
@keen drift not bin
you can set it to true or false to say the package has to be installed globally to work or not
its preferGlobal but its depreciated 
icon_url=ctx.author.avatar_url
if this image for author that sending the command, how i can change it that it will be the bot image?
discord.py rewrite
ctx.me.avatar_url?
@earnest phoenix ctx its not bot
icon_url=bot.user.avatar_url)
I thought it was an alias for ctx.bot.user
@lofty hamlet read the channel topic smh
what doesn't make sense in "don't ask to ask"
then do that
code
I can not do it
It does not work because it's just for the server or the person makes the message
Can you help me or no @sick cloud ?
stpo tagging him lol
...
I confuse wath ?
Who can help me ?
I have trying : bot.guilds.members.map but he don't work
guilds.members.map
As well
Nothing works
Why ?
no one understands what you are trying to say
So :
My code
A top of trainers but he send a top of trainer the server but i want send the all top of trainers
Not only discord where the personn is
You understand ? @knotty steeple
whats your native language?
Non
no
Ouais
Tu peux m'aider ?
not here
I don't JS
how do i get ClientOptions in js, https://owo.oooooooooooooo.ooo/i/oy1l.png , in ts it exist but in js it doesnt (according to vscode) so idk
no bad screenshot wait
also undefined while trying to log it
you know what ignore all of that im really dumb
soo ehm...
Bot(s)Owner|Callumok2004Today at 10:37 PM
--eval client.message.send("test")
[--] CatManiaBot 🐱BOTToday at 10:37 PM
TypeError: Cannot read property 'send' of undefined
this happened out of nowhere, no code edits, and this was caused
So...how does this work and all?
Idk how u didn't know about this, but here you go: https://api-docs.npms.io @knotty steeple
is it on the home page?
would this enmap thing work to fetch something in the enmap sqlite file
const Enmapguildsdb = global.Enmap.fetch('Enmapguildsdb')
use a real db
enmap is just new Map() "but better"
command_prefix=async getPreRaw(None, True),
^
SyntaxError: invalid syntax
What am I doing wrong?
= Bot(
description="UltraBot, a bot which works 90% of the time",
command_prefix=async getPreRaw(None,True),
case_insensitive=True
)```
im sure you cant put async there
preRaw is an async function
oh wait
its await
🤦
but it still errors
= Bot(
description="UltraBot, a bot which works 90% of the time",
command_prefix=await getPreRaw(None,True),
case_insensitive=True
)```
lul
TypeError: command_prefix must be plain string, iterable of strings, or callable returning either of these, not coroutine
``` In the examples in VSCode, this is how they do it
tell me how this means ive no perms
if (!message.member.hasPermission("MANAGE_MESSAGES") || message.author.id !== ownerID) return;
my bot says ive no perms when my id is the ownerID
my bot says ive no perms
Nothing in the code snippet above says that the bot is supposed to say anything if you don't have perms
i know, i removed that so from the above because its a full embed
What is ownerID?
is it a string or an int
Are IDs strings in DJS 
its in a config file which is defined
const {prefix, PREFIX, footer, owner, ownerID} = require('../../settings/config.json')
Uhhh
Thats no help
Do you wrap it around " or `
""
yup
replace the || with &&
:^)have went is wrong
have gone is not wrong
@west raptor u know, we have gone true this, and if i put && then both must be true
no
yes
@slender thistle yea no shit but look at his logic
ill try
What's wrong there tho
and u will be wrong
wait what
wait wait
would i have to do same with this
if (message.content.indexOf(config.prefix) !== 0 || (message.content.indexOf(prefix) !== 0|| message.content.startsWith("<@>"))) return;
dont think i will, cause i think it might be working
i know, i didnt add it yet, just did
the id is added now, but why does it not do anything when i ping bot in message
it has a space after aswell, made sure i added that in code
and i evaled message.channel.send('@heavy thistle') but it did not send that
I think the reason it doesnt do anything when you use that id is because your code returns when that user id is used. If you want it to run for that user, you need to use !message.content.startsWith("@heavy thistle") or something.
or .includes
anyone got a clue why its doin this?
same part S EVERY COMMAND HAS, YET ON THIS ONE ITS DECIDING NOT TO LIKE IT...
sos for caps (caps lock)
can u post ur code?
const Discord = require("discord.js")
module.exports.run = async (client, msg, args) => {
if (!args[0]) return;
if (args[0] === "reportbug") return message.reply("Please specify the bug. Example:\n`gs!ping isn't working. It isn't responding with anything.`");
args = args.join(" ");
message.reply("Thanks for submitting a bug!");
const content = `**${message.author.username}#${message.author.discriminator}** (${message.author.id}) reported:\n~~--------------------------------~~\n${args}\n~~--------------------------------~~\nOn the server: **${message.guild.name}**\nServer ID: **${message.guild.id}**`;
client.channels.get('513318399518965770').send(`${content}`);
}
module.exports.help = {
name: "reportbug"
}
@knotty steeple
weird
ikr
const Discord = require("discord.js")
module.exports.run = async (client, msg, args) => {
msg.channel.sendMessage(`:game_die: **${msg.author.username}**, you rolled a **${Math.floor(Math.random() * 6) + 1}**!`);
}
module.exports.help = {
name: "roll"
}
cos this is one of the others
in exports its msg
yes
so you use that
and sendMessage is depreciated
i see what u mean, but that shouldn't affect it?
idk
whats on line 167?
wym
think ive found the issue XD
mmmyes
just my tired ass misreading it
such pain
raven
yes
u have reason to not use heroku
why not?
don't
that isnt a reason tho?
ur gonna have to pay eventually
yes, but for now its fine
I'd rather selfhost than use Heroku no lie
it aint the best, but it does me for now until i can sort some ood hosting out
mmm
galaxygate exists
DO starts at 5$/month and I got 10$ free credit just click this link
lmao
noone actually uses my referrals smh
What about C9
Is AWS okay for temporary hosting
yes
anyone tried hetzner? im thinking about trying it out
@quartz kindle didn't they have an argument with Discord about some shit?
or is it resolved now
i have no idea
But I recommend you using vultr or digitalocean
https://www.reddit.com/r/discordapp/comments/70iogk/hetzner_servers_a_few_bots_use_them_globally_ip/
Update: Hetzner has reached out to us and we hope to have the issue resolved soon. For now we have lifted the API level IP ban, however the ban from our voice infrastructure still remains.
idk when is this from tho
what about scaleway? anyone has experience with them?
yes
don't use scaleway
it's cheap but for a reason, they use atoms 
absolutely unusable
that's because nobody uses atlanta natan
wait, hetzner is working? its just the music that doesnt work?
then i guess i'll still go for hetzner
yeah some bots that don't have voice features are hosted on hetzner
though it's ridiculous that hetzner is still blacklisted
Yeah only voice is blocked
idk
How do I get a username from a user id
@echo pumice whenever you ask a question say what lib you're using
fetch the user
discord.js,sorry
get the user
do you know how a js Map works?
yeah @quartz kindle
No...
discord.js's client contains a Map (also called a collection) called users
@echo pumice message.author.username or message.author.user.username
Try both I forgot
I’m on mobile so I can’t look at my code
It's message.author.username but that only gets me the username of the person who sent the message, which I don't care about
I think I figured it out thougm
client.users.get(id).username
Yeah that's what I did
good boi
message.mention.members.username
Well I did nickname
U could of done that
It's not from a message anymore
@empty owl message.mention.members.username wont work
Well then look up the documentation
message has no property mention
well you would have to do
and i dont think a member has a username prop
message.mentions.users[0].username iirc
message.mentions.users.first().username
yeah
oh
users is a collection not an array
or replace .users with .members if you want the user as a guildmember
!djs mentions
wot
is there a way to set a timeout when that timeout is done set another timeout and go on
without stacking
like setTimeout({},200) -> setTimeout({},200) instead of setTimeout({},200) -> setTimeout({},400) ?
eh kinda
your best bet is probably a callback or recursive function
function timeout() {
//dothings
setTimeout(function(){ timeout() },200)
}```
smh
setInterval?
yeah setInterval

I feel dumb for asking this, but how does one add text color into the bot program, where it spits out used commands?
Can someone tell me how can I get rid of the box shadow of the pfp of the bot in DBL?
@desert slate what?
@knotty steeple yea
I don't remember how to add color to that, or if it's even possible. Is it?
you want to add color to console?
idk how to do that with your lang
which lang
try searching "change console text color in c#" or something lol
Yeah, now I remember I can do that, but it's been about a year since I did so I don't remember.
System package has Console in which you can set color upon
It's basically a wrapper to prepend in accordance to ascii escape code
I don't remember using wrappers when I made my 8 Ball? 
System's console color is a higher abstraction for underneath escape codes
aka a wrapper
Colors are standardized across pretty much all platforms with their escape sequence
Which is suppose be intercepted by your terminal
True. Thanks for the help.
I swear I'm getting dumber by the day.
First I can't realize where to write the log even though I stare at it for two days trying to think of how to do it and then I forget how to write colors.
There are plenty of packages for logging as well
Mmf, for what I was after, I got it. Looks real nice right now imo.
Easy way to make a developer feel pain: https://upldr.party/ZrxQYOXb.png
why
Ok
So I have this
<!DOCTYPEhtml> <!--Written in Html--> <html> <head><insert align="center"> <p><h2> <!--Nerf Bastian--> TikTok Memes</h2></p></head> <body> <p align="center">Me: Is it May Sir?</p> <p align="center"><p>Boss: I'm already tracer</p></body> <hr> <body><p>Me: Can I have a tray, sir? <p align="center">Him: I'm already Tracer</p></body> <hr> <body> <p>Police: Get them with the taser</p> <p>Me: I'm already Tracer</p> <hr> <body><p>Him: I got an Acer</p> <p align="center"><p>Me: I'm already Tracer</p></body> <hr> <body><p align="center">Her:Chase her!</p> <p align="center">Employee: I'm already tracer</p> </body> <a href="https://cdn.discordapp.com/attachments/199895251735805953/515431805936074767/image.jpg">Click Me!</a> <!--T series Is almost ahead of pewdiepie-->
And I'm so happy
Sorry
it doesn’t look too bad on mobile
If I have something like:```html
<div class="categories">
<div id="x-category">
<!-- content -->
</div>
<div class="hidden" id="y-category">
<!-- content -->
</div>
</div>
How can I (in jQuery) make it so if you click a tab (just a ul with <a>s), the category corresponding with the tab's `hidden` class gets toggled?
if you just want to toggle the hidden fields (ie: have more than one open at a time):
$(".categories").find("#y-category").toggleClass("hidden")```
if you only want one open at a time: ```js
$(".categories > div").addClass("hidden");
$(".categories").find("#y-category").removeClass("hidden")```
I want to be able to do this with any category though
there will be more than 1
I mean 2
get the category from the click listener using this
hey guys relatively new to the JavaScript language, I created my own class in a .js file and in another .js file say const x = new Team(); Team is the class I created yet I am receiving a Team not defined error. i am using node. Is there a special thing to allowing class access?
something like js $(".something").on("click",function(){ $(".categories").find($(this).attr("id")).toggleClass("hidden") })
@ivory marlin how did you connect both files?
did you do const Team = require("blah")
I tried to just write require('team.js') in the new .js file
you need both require in one file and module.exports in the other file
the require statement is it as simple as just writing require(pathfile);?
im used to java import
yeah
So to get the file on the right to gain access to the file on the left should just need a require('team.js') ?
ignore x.announceName(message) forgot to delete it
const Team = require('path to file')
$(document).ready(function () {
$(".tabs").click("a", function () {
$("li .is-active").removeClass("is-active");
$(this).parent().addClass("is-active");
});
});
``` no classes are changing, why is that?
Can someone tell me is there a way to move the bot's pfp to another place in DBL?
What do you mean? Moving it on the bot page?
I sized the bot's pfp a little bit and it stick on the side. I would like to move it to the middle.
So styling it?
@brittle nova first make sure $("li .is-active") actually returns a dom element
@earnest phoenix Yeah, use CSS like you already are
ok but is their a way to use CSS to change the img position?
ok Imma got search to see how to use the position tag
It dont work
@keen drift ```
ƒ (e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){w(this).removeClass(e.call(this,t,mt(this)))});if(!arguments.length)return this.attr("class","");if((t=xt(e)).length)while(n=this[u++])
theres more
wtf am I looking at
lmfao yeah what is that
do I look like a machine to you
yes nope
beautify it at least pls
console.log($("li .is-active"));
thank
How can I remove the border of the bot's PFP?
👏
gotem
@earnest phoenix
.columns .bot-img {
box-shadow: none !important
}
ok thanks
is $("element .class") not how you select an element and class?
it's
lmao
doesn't work in w3 for me 🤔
hey fishy
Tryit Editor™
do you know how to do regex in go
I'm looking at https://www.w3schools.com/jquery/trysel.asp
yeah
I forgot how to get it to highlight the element with jquery
I could do it with document.querySelector not jquery

src := "@barren island ping"
re := regexp.MustCompile(`^<[@!?]{1,2}361657857223163925>\s?$`)
``` how 2 replace `@barren island ` with nothing
$('element.class')
do you really need regex for that
I use it to check the @! @? @ in the mention
yes by fixed user id
That regex already works right?
ye it does
I get the regex part but idk how to get rid of the mention in the message
I thought mentions were only @ or @!
replaced := re.ReplaceAll(src, []byte(""))
If this works im committing fishy

try the updated
forgot to change the regex
or you can use the string version

did you check for match first
You sure that regex works? https://i.imgur.com/6iPcVJj.png
lul ok
so remove the \s?
(?:<@!?)?([0-9]+)>?
@keyframes imgfloat {
0% {
transform: translatey(10px);
}
50% {
transform: translatey(-20px);
}
100% {
transform: translatey(10px);
}
}
.bot-img > img {
box-shadow: none; !important
transform: translatey(0px);
animation: imgfloat 3s ease-in-out infinite;
width: 260px;
height: 260px;
margin-top: auto;
margin-left: auto;
margin-right: auto;
position: absolute;
``` The box shadow still exist. Please help me.
Also you may not need the greedy modifier
regex is neat scary
this reminds I gotta fix some shit
@brittle nova @west raptor to explain it more, @!? the ? is the quantifier or greedy flag in regex
there's only @ and @! for user ping
o
k
<div class="modules">
<div id="home-module">
<p>thing</p>
</div>
<div id="home2-module" class="hidden">
<p>thing2</p>
</div>
</div>
``` How can I select modules that are not hidden without selecting .modules?
i'm not certain if that's possible with css selectors
@keyframes imgfloat {
0% {
transform: translatey(10px);
}
50% {
transform: translatey(-20px);
}
100% {
transform: translatey(10px);
}
}
.bot-img > img {
box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.6);
transform: translatey(0px);
animation: imgfloat 3s ease-in-out infinite;
width: 260px;
height: 260px;
position: absolute;
margin-top: auto;
margin-left: auto;
margin-right: auto;
}
``` Is there an error in this code? Because the box shadow wont go away.
@brittle nova you could try this perhaps: div[id]:not(.hidden)
that's a very vague query, it's prob going to match more than one
@earnest phoenix box-shadow: none !important;
@keen drift It dont work. Should I put it in the <style> part or <script> part?
Should I post the entire css for you to check?
check is there any error?
is there a console thing that will upload the errors?
ok
Well I saw a syntax error, it says "Unexpected indentifier" on 477614216409514014:123.
where
in the console section of inspect?
can you link me your bot page
sec
k
oh yeah, you can ignore that
the syntax error?
yeah
So, should I just leave the box shadow there or ask somebody else to help me with getting rid the box-shadow
yes
use
.columns .bot-img {
box-shadow: none !important;
}
or remove the children tag >
¯_(ツ)_/¯
It works now, thanks @keen drift.
i had a question
i was making a translate
commnad
for my bot
im using node.js
discord.js lib
and how will i make it to translate for languages
like for more than one language
i want it to be like this .gtranslate hello -pt
but how will i do it
please tag me if anyone can help
no
Then what do you want
if i want it
like how will i make the command work for any language
like the person can choose his language
Omg did you read the package info
@soft plaza im not using that package
im using anothe rone
i dont want packages
im asking how will u make the command
so that ppl can choose their languages
not in console
example
` .gtranslate hello -pt`
//output will be ola
other example
`.gtranslate hello -es`
// output hola```
Don't understand what you want dude. The package literally has every thing you are looking for
@soft plaza do u have a bot ?
what im trying to say
i gave an example to how its should be
how can i do it like that
I think he doesn't want to use the package but I don't understand why
What's the name then
im having trouble with parsing
retrieve second index

you never even show us any code to how you are handling it now

if (message.content.startsWith(prefix + 'translate')) {
if (message.author.bot) return;
translate.key = process.env.TRANSLATE_KEY;
let args = message.content.split(' ').slice(1);
let reason = args.join(' ');
if(!reason)
return message.channel.send(`**..**`)
translate(`${reason}`,
{
to: 'es',
engine: 'hidden',
key: process.env.TRANSLATE_KEY }).then(text => {
message.channel.send(text);
});```
no
@keen drift
wait
args[1].substring(1)?
yeah ok
The wants `<command> <string to translate> <language>
how the hell do you even read your own code
the indents, spacing doesn't even have any semantics to it
great
my spacing is bad cuz I use glitch
Glitch doesn't have anything to do with spacing
no idea
lmao
i didn't run that bot
it's two different things
Jimp or canvas? 
all i think is where is discord.bat
lol
jk
that'd literally be hell for whoever had to make the library
bots can't have rich presence at all
if you send rich presence discord just ignorrs it for bots
i tried ™
so sad
Anyone know what the css tag is for the background of the bot page
ffs
Why does it show the song name twice?
what
self.np = await self._channel.send(f'Now Playing: **{source.title}** requested by '
f'**{source.requester}**')
await self.next.wait()
# Make sure the FFmpeg process is cleaned up.
source.cleanup()
self.current = None
try:
# We are no longer playing this song...
await self.np.edit(content=f"The song **{source.title}** (requested by **{source.requester}**) is no longer being played.")```
i'm using eeviee's music cog
you have really good spacing
thanks, blame the codeblock
is that python
yes
are u talking about this?
yes
it edits into that mess
And after a while, it changes back into what it should me
be
lol wha
Soo it isn't saying the name twice when it says song added to queue
try making a global variable and change the string of it to the source.title
and rather than having ${source.title} every time u want the song title ut the var
k
st = str(source.title) st returns the proper title
await self.np.edit(content="**" + st + f"** requested by **{source.requester}** is no longer playing.") the title prints twice
k whats going on
im using node.js
how will i make it if the user
reacts to the bots reaction the bot will respond
hang on
or just do
Depends on what library you use to connect to discord <.<
msg.createReactionCollector
are you using discord.js?
also depends on your version
If using discord.js you should use reactioncollector yes
tbh o
yes thank you
:-)
I mean
I wrote a bot which needed it
w/o knowing of its existence
so I also have my own reactionCollector class lmao
util/ReactionManager.js
What vps do you recommend to host a bot?
read pins
@hollow fulcrum ffs use lavalink
:screw: you
But like honestly use it
If the user voted in DBL I would like to give him the role that has Upvoter, but I can't, can you help?
using webhooks
I want to do it in command
webhooks would be easier and if it fails to give them it make a command for it
webhooks are faster aswell
ok thanks
``
npm ERR! path C:\Users\Administrator\Desktop\yvsYedek\node_modules.staging\hastebin-gen-7763b217\node_modules\snekfetch
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Administrator\Desktop\yvsYedek\node_modules.staging\hastebin-gen-7763b217\node_modules\snekfetch' -> 'C:\Users\Administrator\Desktop\yvsYedek\node_modules.staging\snekfetch-d4aff403'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2018-11-24T13_49_47_571Z-debug.log
C:\Users\Administrator\Desktop\yvsYedek>``
Where is hata
p!çevir en hata
p!cevir en hata
help me
I'm doing npm i discord.js, and eventually gives this error.
I think it means it can’t find the path
how to fix @zenith moss
Have you been able to install other libs?
Now @zenith moss
Yeah
?
Have you been able to install and other library’s?
[ WARNING ] [UNHANDLED REJECTION] DiscordAPIError: Missing Permissions
at item.request.gen.end (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:79:15)
at then (E:\BotDevelopment\Rxiqi BETA\node_modules\discord.js\node_modules\snekfetch\src\index.js:215:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
``` I can't figure out where its coming from
What command are you running?
I'm uploading and joining all the libraries that are currently missing and working together ara
its not a command, its seconds after the bot loads up
ive disabled all events
Is your main files name Sequential.js?





?
