#development
1 messages ยท Page 375 of 1
cause you dont know how js works 
so @earnest phoenix
just follow the guide
depends
click 9.5.0
yes
lmao, where to go
@limpid basalt whats your bot name?
NyaBot
ok lemme fix it
sorry@uncut slate
dns issue?
We're having some issues at the moment, it's being looked into
k
๐
Its back
so verified servers can have custom invite links, right?
how long must/may that tag be, is there a minimum/maximum?
i think it follows the username structure not sure tho
hm okay
can i get your opinions of - https://voidbot.xyz/
good, but, make dix box smaller
can someone help me with sending .jpg files in discord.py
i also need the bot to download files
How means how can he detect and get the guild ids on guilds when it first connects to them
what?
He wanted to know how to listen to the guild connected event and pull the guild id to use with initializing the bot
I fixed it
@earnest phoenix so
What
Kaniel are you having trouble too?
Hehe
@hushed oyster ?
ok
so
you have to mention the role but do not send the message
then put a backslash right before the mention
it should give you something like <&82736392737>
copy the numbers and that's your id
hmmm
so there's no simpler way of having them mention a role and adding it?
to a given user
coudld I sa mentions.roles?
:3
y do people put their names as popular tags ppl do 
to troll
Idk
so im making my bot send to a specific channel on each server... ive figured all that out, but the thing is my bot crashes if there is no channel by the name im looking for... is there a way too if/then test for a channel name, and THEN send the message instead of crashing?
yes, but test for if a channel exists
like would i do
if(message.guild.find("name", "log") {
blah
}
if(message.content == "+xddeleteme") {
console.log("xd")
var logchannelxdz = message.guild.channels.find("name", "log");
logchannelxdz.send("hixd")
}
})
thats just testing it
if(!logchannelxdz)
how do i fix this?
/Users/example/Desktop/bot/bot.js:363
});
^
SyntaxError: Unexpected end of input
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
send the whole code
i only have 362 lines
and it says there is a problem at 363
and it'd exceed character limit
@slim heart
upload it to http://hastebin.com/ or something
but still.
y would it say that it is at 363 when their are 362 lines
Ohhh
i see
alright
theres a missing ) } ] etc
thats the problem
there needs to be an end to whatever you have in there
send me the code via hastebin and ill find it for u
ill c if i can find
that too
i figured it out
-nsfw
How to get your bot's shard count with d.js?
client.shard.count
ty
For devs here who have done web panels did you guys do the front and back end all in one project or construct a API and have the frontend access it?
I made it all one project
So, clear up my first question, is their need to implement several languages or just one language to code the whole bot is okay like I may use Python or C#
Just one,
its completely ok to just do everything in 1 file too
@leaden bane what? what are you doing
can you not be rude or whatever you're doing
1 file wtf are you guys talking about 
lol don't follow my example and do this with your bot
That's what we are talking about'
I used to do it and it's bad practice
literally horrible code practice
Never put everything in one file xD
nice
If you dont want to do everything in one file just use java xd
exactly
But it's better to use more than 1 file TBH.
you can put stuff in mutiple files on pretty much any lang though
Yeah.
yeah having everything in one file is a nightmare
especially when your codebase starts getting large
lots of ctrlf
But Piet will entertain your brain...
Yeah
storage space optimization
can fit more code on your drive if you do it in one line
I used to do it when Discord.net 0.9.6 was sill a thing 
youtube
read docs
YouTube, Google, docs
or just copypaste these new tutorial memes dbl has
EH?
Well that's not learning 

can i get a link?
But i know python
to docs
and i wrote it
shall i say one thing?
my github repo is a long code
same...
you dont have to know
Here.
Which you will use for creating Discord bots using Python.
Great.
the go forth and create your masterpeice
But I can't get you too.
-bots
@ornate zealot
@leaden bane I just wanted to say that know i wanna learn bot development
He already knows.
@earnest phoenix i know Python
If you dont know how to do something stackoverflow
If you know it creating a bot should be easy
but how?
using the discord.py library
where should i write codes? then how can i learn it?
Install Python and discord.py lib..
several examples and extensive documentation are available
That's what you do first
what does this discord.py lib mean?
library that allows you to interact with the discord api
oh in a command prompt type "pip install discord.py"
pip install discord.py
okay
in your code type
import discord
import asyncio
from discord.ext.commands import Bot
from discord.ext import commands
No need to do from discord.ext.commands import Bot
from discord.ext import commands
@cold harness be patient.
Unless you want to use the commands framework
ok
Step by step.
lel im a bad teacher
Installed discord.py yet?
hey guys
How do you check if [a] user's ID is within a list
What language?
python
Discord.py... Rewrite, or the latest?
rewrite
if bot.get_member(INT) in LIST:```
oh
Heh?
List can be whatever.
Welll...
So...
Wellllllllllllllllllllll.... It has to be a list... or an array.
A list is already an array?
I don't think so.
oh heck
The former is a list, the latter is... nothing.
What?
[1, 2, 3, 2, 1] THIS IS A LIST
{1:1, 2:2, 3:3} THIS IS AN ARRAY
A dic should be {'1':9, '2':8, '3':7}.
oh right the keys need to be strings
LMAO dicts are arrays?
idk
that's not an array
LMAO.
py doesn't have arrays afaik, just lists and tuples
Agree.
I disagree, 60221400000000000000000000000.
But that's your name.
pls
Anyways, I disagree - I do believe that they exist.
so what's an array
C# dictonary be like { { key, value }, { key, value } }
LMAO.
A list of values containing keys to identify what item to what.
THAT'S A DICTIONARY YOU NOOB!
Go read one. :3
oboi
Array is a set of values 1, 2, 3
a dict with the keys being zero-based ints is not an array
Python doesn't have a native array data structure, but it has the list which is much more general and can be used as a multidimensional array quite easily.
I'm bored now, so I'm going to stop arguing without claiming that I lost.
๐
Bye someone I don't like... much. :v
Oof
Btw kio im pretty sure you meant that py list can choose the index of the value and not an actual key like dictonary
Yup an 'array' is like a dict with natural number keys.
Keys in dictonarys can be any value type string, int, ect
dictionaries.
:3
Should I make an English grammar correcting assistant bot?
Also watch #265156361791209475 ...
How can I define message in bot.on('guildMemberAdd', member => {
?
JavaScript / Discord.JS
there is no message related to guildMemberAdd
Can await eval() include await client.send_message in discord.py?
Oh, if you know why I am asking this, i am testing Eris library, and async discord.py is being used.
I barely use python so I can't help you there
So, even using await eval(), can somebody please show me a example?
And how it can be "only to the bot developer"?
what do you mean "i am testing Eris library, and async discord.py is being used" 
eris is writeten in js and d.py is written in python
As in, I am testing the replacement of The Pip library.
And I want to know, does the await client.send_message work with await eval()?
Hello i first time create bot music and can tell me how can create commant !leave
we don't spoonfeed, sorry.
..
commant
@topaz fjord gg on certify
@lethal sun lmao been like a month
Hello I have a dumb question :
I make a request on an URL which retrieve a Json.
Dpending of the url I might get 2 differents JSON
How do I make differents treatments depending of the Json I get ?
Why are you getting 2 different jsons
I'm making some requests on exchanges
and depending of the url format
The json can have the information i want
or have another infos
for example
{'symbol': 'MCOBTC', 'priceChange': '-0.00007400', 'priceChangePercent': '-8.635', 'weightedAvgPrice': '0.00081861', 'prevClosePrice': '0.00085800', 'lastPrice': '0.00078300', 'lastQty': '5.12000000', 'bidPrice': '0.00078200', 'bidQty': '41.14000000', 'askPrice': '0.00078500', 'askQty': '5.12000000', 'openPrice': '0.00085700', 'highPrice': '0.00086600', 'lowPrice': '0.00077600', 'volume': '79814.72000000', 'quoteVolume': '65.33750429', 'openTime': 1519052606902, 'closeTime': 1519139006902, 'firstId': 2356583, 'lastId': 2359569, 'count': 2987}
this is a good JSON
{'code': -1121, 'msg': 'Invalid symbol.'}
this is a bad JSON
if binance_json["msg"] == "Invalid symbol.":
value_bin = "```css\nThis Coin is not listed on Binance. ```"
print(value_bin)
elif binance_json["symbol"] == "{}BTC".format(coin):
print(binance_json)
if coin == "BTC":
pair = "Pair : USDT-" + coin + "\n"
last = "Last : " + "{0:.2f}".format(float(binance_json["lastPrice"])) + "\n"
bid = "Bid : " + "{0:.2f}".format(float(binance_json["bidPrice"])) + "\n"
ask = "Ask : " + "{0:.2f}".format(float(binance_json["askPrice"])) + "\n"
volume = "Volume : " + "{0:.2f}".format(float(binance_json["quoteVolume"])) + " BTC" + "\n"
high = "24 High : " + binance_json["highPrice"] + "\n"
low = "24 Low : " + binance_json["lowPrice"] + "\n"
value_bin = "```css\n" + pair + volume + last + bid + ask + high + low + "```"
else:
pair = "Pair : BTC-" + coin + "\n"
last = "Last : " + "{0:.8f}".format(float(binance_json["lastPrice"])) + "\n"
bid = "Bid : " + "{0:.8f}".format(float(binance_json["bidPrice"])) + "\n"
ask = "Ask : " + "{0:.8f}".format(float(binance_json["askPrice"])) + "\n"
volume = "Volume : " + "{0:.2f}".format(float(binance_json["quoteVolume"])) + " BTC" + "\n"
high = "1d High : " + binance_json["highPrice"] + "\n"
low = "1d Low : " + binance_json["lowPrice"] + "\n"
value_bin = "```css\n" + pair + volume + last + bid + ask + high + low + "```"
return value_bin
and this is my code
The bottom part is an error code for you did something wrong
Then don't do something wrong 
Is this even JavaScript lol
python3
No it's not, welp im dipping
How can I merge two pictures in Jimp? Like put a dab emoji on a message authors avatar.
In eris for messageDelete, is there any way to get the message content if its not cached?
you can get the content if the message was still in the cache
Discord.js' cache is circular (at least I hope)
How does typescript and node.js work out? With express? Afaik ts compiles into js but I was wondering if there were any advantages/disadvantages
ts transpiles to js
there's the clear advantage of type safety
there shouldn't be any disadvantages
besides having to compile the ts code
so would I have to compile TS into JS, and then run it via node?
yes
iirc yeah TS is just meant to be compiled into JS
would have thought that someone'd have written a plugin but that works too
I detect no C++
they didnt modify node
they probably shoved tsc up its arse and made it run on runtime
more or less yes
Is there a way to use username instead of displayName when dealing with message.guild.member?
message.guild.member.user.username
message.guild.member 
idk
Hi there, I have a small question: how is it possible to make a bot adds another bot to a server?
I would like to automate this process on my server: a user enters the id of his bot in a command and it gets added to the server with no permission (then gets a "robot" role, but that's easy to do).
no
This way, users don't need to wait for an admin to add their bots. (Exactly like in #logs)
you need to complete a captcha
and there is no public endpoint
to avoid people spamming a server with bots
and making the bots waste resources
I know for the captchas, but when I filled the form on the website my bot got added to this server automatically, so this is possible
no
since the captcha is linked to your user account
and you cant embed just the captcha
and trust me, nobody adds bots to servers automatically
the moderators here have to review each bot
and add it manually
poor moderators goes through hundreds of captcha everyday
they are lazy... jk they are doing a great job
my bot only got mentionned in #logs and since I have other servers in common with it the mention got correctly displayed...
well

Thanks for your replies ๐
its just clicking I give away my soul to GoogleI am not a robot
so its not that hard
you gave away your soul the very first step you did on the internet 
Well, you don't step on the internet...
^

wait, what does this have to do with #development ?
Can anyone help me with discordpy?
What I want to do is my bot to send a message, wait 10seconds for an user to react, and get every user that reacted with a specific emoji
discord.Messages has ยดreactionsยด, but that doesnt return the user
Ugh, found it out
msg = await client.send_message(message.channel, 'React with thumbs up or thumbs down.')
res = await client.wait_for_reaction(['๐', '๐'], message=msg)
print(res.user)
Not sure how I use this to get every user that reacted...
why do you want to get the users, why not just the count
Because I want to get the users that reacted...?
for what
to randomly draw one of them
for a givaway?
ye, similar
mhmm that gets ugly
since it also stores the message ids and I have to remove it every 10sec
does ot return anything
then find the user in what i returns
res.user ?
try res.member
that might work
that's not the issue
you want to randomly pick one
since the messages where users react get sent multiple times, I would need to check for every new react if it's one of these messages
make a list of isers and pick randomly from thre
i dont do python so this is really not that easy for me, sorry
ye, my question is lib related
i use js and you can just put the results directly into a json variable
i will try though
but do you have something that searches the users that reacted by message.id?
discordpy doesnt seem to have that
not talking about that, discordpy also has that
The issue is that I want to get the members.id from a reaction
The code I posted above only returns 1
res = []
msg = await client.send_message(message.channel, 'React with thumbs up or thumbs down.')
res[len(res)] = await client.wait_for_reaction(['๐', '๐'], message=msg)
for x in res
print(x)
does this work?
@icy lynx does this work?
testing
doesnt work
res[len(res)] = await client.wait_for_reaction([':thumbsup:', ':thumbsdown:'], message=msg)
IndexError: list assignment index out of range```
@modern kelp
um
In theory, it shouldnt work
on this paart
res[len(res)] = await client.wait_for_reaction(['๐', '๐'], message=msg)
for x in res
res.append(await client.wait_for_reaction([':thumbsup:', ':thumbsdown:'], message=msg))
That's not really how Python works
try this
res = []
msg = await client.send_message(message.channel, 'React with thumbs up or thumbs down.')
res.append(await client.wait_for_reaction(['๐', '๐'], message=msg))
for x in res
print(x)
What it does is that it gets the reaction, stores on res once and ends it
hmm
Hey all, what's the strategy for initial help messages? my bot right now just posts a help message to #general when it joins a guild, but it looks like all of the bots in the testing channels keep their initial help message contained to the testing channels. How is this done?
Some kind of loop could be done, but that might get messy
@zinc maple get the guilds channels then post it in the first channel it can send in
e.g. check if it can send in each channel
if it can send, end the check and send
Ah ok, cool. How do you check? Just send the message and if it succeeds, then you're done?
@modern kelp ^^^
no, get all the guilds run a loop and use something like .hasPermission or something, check your libโsdocs
Got it. Thanks!
regarding my issue
I will just use the Discord API
hellow peepholes i have problem regarde discord.py
this is my code
if message.content.startswith('.add'):
authid = message.author.id
fname = ("%s.txt" % authid)
if os.path.isfile(fname):
read = open(fname, 'r+')
rmoney = read.readlines(1)
rmoney = str(rmoney)
rmoney = rmoney.replace('[', '')
rmoney = rmoney.replace(']', '')
rmoney = rmoney.replace("'", '')
rmoney = int(rmoney) + int(1)
read.write(str(rmoney))
the file before had 5
the file now has 56
@icy lynx you know discord.py right
so you shoulkd ghelp
what are you even trying to do lol
take the number 5 from a file and add 1 to it
and then write that back onto the file
open("fname.txt", "r").read().strip("\n") if you're reading just a number from it
gao
oops
so i'm looking to try and make a bot, are there any tips on how to do that. Namely I've figured out how to actualy create one via the discord site, but how do you program them to do what you are wanting? I'm seeing some code examples in various scripts, but can't seem to tell what is best. I'm trying to get it to where I can feed it a list and have it randomly toss a name from it back at me with a command.
You can study some of the example scripts you found until you understand how it works and what language is best for you. Thats what I did anyways.
you frickin fricks
hi, can anyone help me pull data from some columns of sqllite db then put them on to a scatter plot?
does anyone have a library where they can link the documentation with scatter plots?
Heyo
I need help on something with Python3
is someone here ?
just ask your question
Iโm here but Iโm going to sleep so ask ur question
ASK. IT.
y'know they asked like 4 hours ago so I doubt they'll answer now
Exactly 4h15 ago.
actually first of all are they using 3.5 or 6
take it to #memes-and-media thnx
patience, he'll ask when he asks? 
Oh my Word...
lmao
Sorry I was afk so I didn't see all your messages :c
Alright
Python 3 Issues
I make a request to an url which return a JSON
This JSON can have 2 different forms
form 1 : Good JSON
{
mid: "0.0807635",
bid: "0.080763",
ask: "0.080764",
last_price: "0.08075",
low: "0.07727",
high: "0.081943",
volume: "57065.14056706",
timestamp: "1519220945.421262"
}
form 2 : Bad JSON
{
message: "Unknown symbol"
}
The fact is
I don't know which JSON I'll retrieve
I want my code to know what to do depending of the JSON i get
If i receive the bad JSON i want :
var = "Bad JSON"
and if I get the good JSON i want :
var = "Good JSON"
this is my code
in json, the property name is in quotes always
yeah I know
so "mid": "0.0807635",
just saying
I dont know python3 that much, but I know JS and attempted to correct you
in json
lol
its just how your browser displays json then
I think
{"mid":"0.0808005","bid":"0.0808","ask":"0.080801","last_price":"0.0808","low":"0.07727","high":"0.081943","volume":"56778.75651254","timestamp":"1519221182.7644079"}
this is how the raw response looks
yeah
I use a chrome json formatting addon
CODE:
r = requests.get(api_url)
bitfinex_json = r.json()
print(bitfinex_json)
if bitfinex_json["message"] == "Unknown symbol":
value_finex = "Error"
elif coin == "btc":
pair = "Pair : USDT-" + coin.upper() + "\n"
last = "Last : " + "{0:.2f}".format(float(bitfinex_json["last_price"])) + "\n"
bid = "Bid : " + "{0:.2f}".format(float(bitfinex_json["bid"])) + "\n"
ask = "Ask : " + "{0:.2f}".format(float(bitfinex_json["ask"])) + "\n"
volume = "Volume : " + "{0:.2f}".format(float(bitfinex_json["volume"])) + " BTC" + "\n"
high = "High : " + "{0:.8f}".format(float(bitfinex_json["low"])) + "\n"
low = "Low : " + "{0:.8f}".format(float(bitfinex_json["high"])) + "\n"
value_finex = pair + volume + last + bid + ask + high + low
else:
pair = "Pair : BTC-" + coin.upper() + "\n"
last = "Last : " + "{0:.8f}".format(float(bitfinex_json["last_price"])) + "\n"
bid = "Bid : " + "{0:.8f}".format(float(bitfinex_json["bid"])) + "\n"
ask = "Ask : " + "{0:.8f}".format(float(bitfinex_json["ask"])) + "\n"
volume = "Volume : " + "{0:.2f}".format(float(bitfinex_json["volume"])) + " BTC" + "\n"
high = "High : " + "{0:.8f}".format(float(bitfinex_json["low"])) + "\n"
low = "Low : " + "{0:.8f}".format(float(bitfinex_json["high"])) + "\n"
value_finex = pair + volume + last + bid + ask + high + low
But this code does not work
And I don't understand why
Looks complicated.
well this is just string formatting with JSON data
Let me test a bit...
I just need a way to have a treatment for both good and bad JSON
You can check if is doesn't have required fields?
mmmm
this is somehow what I'm trying to do right now
I check if the value of message == Unknown symbol
if yes -> var = Error
if no var -> values
OK.
Nice to help you out! ;)
devs
DiscordBotListAPI api = new DiscordBotListAPI.Builder()
.token(Static.getBotListKey())
.build();
int serverCount = discord.getGuilds().size();
api.setStats("384675657579495430", serverCount);```
why luca can't get server count
website too
i think u need the token
lol
i put api key there
key from discordbots.org
It's not Luca can't get server count it's you're not sending it right
hey, could someone tell me how to set my bots playing message?
what lib are you using
python
Visula Studio Code
how to make a discord bot react
1โฃ ??
IDK
Does that comply with the rules though....well, if it spams it then obviously not
I don't presonally use python but I found this that might work: https://github.com/Rapptz/discord.py/issues/125
@nimble merlin await client.change_presence(game=discord.Game(name='Use "JH" to see how to talk with me!'))
its kinda buggy sometimes tho
thank you! ๐
np!
this was its responce ._. :
File "bot.py", line 104
await client.change_presence(game=discord.Game(name='Use ~commands'))
^
SyntaxError: invalid syntax
did I miss something?
I use Visual Studio Code
as in client = Bot(description="JADE", command_prefix="", pm_help = False)
idk ._.
that's fine, find the line in your code kinda like that one
My bot managed to boot, but it dosn't display the message ._. .....boi coding has its difficulty's
-bots @nimble merlin
@slim wyvern
-botinfo @slim wyvern
lol
hm
no server count??? That's weird
server count requires the usage of the discord bot list API
ohhhhhh
i have no idea how to get that working lol
lol....thanks for trying though ๐
-botinfo @ornate zealot
๐
why
lol
Because this is development
๐
Those commands have nothing to do with development ๐
๐
There are channels for that you know?
๐ he has a point
yea ok
anyway are you using async or (i forgot the other version fo discord.py)?
hmmmm
k this is my code just in case you can use it
spoonfeed 

@heady zinc if i was spoonfeeding then i might as well have made my entire AI's code open-source
sure
@heady zinc ur a spoon
@prime cliff i'll baguette u
no u
Mkay 
im back
cool
any idea how to http request an image from discord without getting a error 403?
add an user-agent header
add an user-agent headerยฒ
yes totally
im currently using```
f = open('imageTest.jpg', 'wb')
f.write(request.urlopen(ModMessage).read())
f.close()
see if you can give headers to urlopen
sure
I managed to set the Playing message...however I had to pull off a stupid move and copy the Musicbot coding into my directory, run the bot, then remove that coding....I think if my bot goes offline then it will reset but i'm working on a way to set it permenantely
just set it when you initially run the program
thats the point, i'm struggling to do exactly that...every relevant piece of code that I have used has outputted with a syntax error
do you know any programming languages at all
(if not, how are you a bot developer
)
OMG I did it
wow, thats kinda rude....I have only been taught VERY basic Python in computing class....not my fault
Either way, I figured my way around it
Is there a way to selfdeaf in discord.js v12?
.setDeaf() does a serverwide deafen
I want a selfdeaf
Quick question, how can I see how long I've been on the list? owo
What exactly makes a bot, a social bot.
a bot that can interact with guild members?
so... any bot? lol
actually, I'd think it would be a bot that has commands that can interact with multiple guild members, such a tic tac toe, trivia, connect 4, ship command
Any good ways to restart on crash for python?
what script language do you use to start the file?
Python3.5
Use a guardian service
forever.js
It's discord py
My code is fine
Is there a way to know how many users in total are using the bot ?
This is for backup purposes
like add all the users on every server the bot is on
@floral stone if its fine, why does it crash then?
I never said mine crashed
yea
nah
@old glade which api
you mean lib
lib
Yeah
if lib then it's discord.py
outta here too
I meant like do you have a script that starts your bot? my bot is made with jsvascript but the startup file is a shell file
if exit code isn't x
X?
you can define what x is
ubuntu 16.04?
any value you choose
14.04
oof
[Unit]
Description=Bot Service
[Service]
WorkingDirectory=/path/to/your/working/directory
ExecStart=python3.5 run.py
SuccessExitStatus=0
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target```
just do it
^
oof i forgot that also worked
i just add a shard in discord.js and that fixed it all xD
Does anyone give me an example of awaitMessages in discord.js?
And what can be with several options ...
0|givaway | { Error: ENOENT: no such file or directory, scandir './events/'
0|givaway | errno: -2,
0|givaway | code: 'ENOENT',
0|givaway | syscall: 'scandir',
0|givaway | path: './events/' }
getting that lovely error on each restart/start of my bot, any idea why its doing that?
Hello guys , Im not with time win the last weeks and Im needing to code a bot to my server. I am looking for someone can do this for me. I pay to do the codes. Its 2 things; Do the bot move guys from one room to other and send pms to everyone had reac to a message. PM If you can.
send pms to everyone had reac to a message this is API abuse and bannable
bad
How is it api abuse? There's nothing mentioned about mass mention.
It's for everyone who has reacted which can be just 2 people
it'd fall under spam unless they were only a few
i was expecting something in the order of a few dozens tbh
like a message in an announcements channel
"Send pm to everyone had reacted to a message"
By the message she sent, it's probably for a small discord server.
I don't think It's considered api spam @upper pumice
About #414124730715734068, who said the page is just limited to just developers? Anyone can view the site, the page, and so on. Why limit the capability of the site just because someone has a different device or could use a different device?
@fossil oxide
Heyhey. I'm wondering if someone wouldn't mind fixing up my script. I built it for my users to use listen.moe, soo.. :3
For some reason,my bot panics about a minute in.
spoon feeding 
Shh.
@floral stone Because the docs are for developers developing, you don't develop on mobile
saddly its python, so even if you paid, I wont be able to
I mean, she runs fine, but I just get an error about a minute in. That's all.
She runs okay beyond that point.
Yeah nope I lied
But people read things on mobile, it shouldn't matter if they are a developer or not. People might be like: "If I can't read this on my mobile device, why should I read it on my laptop? I don't have time to wait for my computer to boot and it's probably the same as the mobile version. I'll go use carbon instead.". You can't just assume everyone is a developer, maybe someone ordinary might just want to read it before adding their bot.
@fossil oxide
1/. Buy a new computer
2/. Feel free to goto carbon that's nearly on page 2 of google
ยฏ_(ใ)_/ยฏ
- I can access the site on my computer. I'm talking in a general stance.
it may seem like I'm being a dick, but developing is for a computer, they are developer documents and it's common sense
- You're missing my po
if it affected that many people that badly we would always consider changing it
but the reality is that this guild and bot developers only account for less than 1% of traffic
It's not about whether or not someone is a developer, you shouldn't leave a site unfunctional just because they could use another one. 100% support bby
It isn't hard
we would probably have to recode the whole side navigation
it's not unfunctional
you can still use it
Not really
Why have mobile standards place if you don't support them. Make desktop version work
Hello, I've got a question about certain bot I'm looking for if anyone could help?
Which bot, @calm sky
Mobile standards for the users of the website, they are in place.
But everyone is a user
but not everyone is a developer
But all of them are viewers of the site
yes
@calm sky what type of bot are you looking for?
Honestly, the side navigation is a pain even on a computer
When I make the window smaller
To fit something else on the monitor
It also overflows over the content
Why limit it for everyone just because of someone agenda?
Well, not a particular bot but a type of bot. I'm looking for a bot which could store information provided though commands. Something like filling up a sheet or a document as each of these logs would have own number. E.g "Order #1, Name, Second Name, Other Information, Other Information".
I just ended up rewriting the nav into a tampermonkey userscript
hmm
A data base in other words.
But the script I wrote is a quick bodge not a prod ready thing
But I believe it could work on mobile
If only tampermonkey was on mobile
Because we want to focus on features for the many, not the few, unlike some people here, the developers of this site have a life, an education they need and more real world responsibilities and when we give up our time to work on the site we want to use our time to make features that will be used and loved, not some documents to look good on mobile that hardly anyone uses
Oof I just got roasted
But you run a server filled with developers, couldn't you get them?
I mean
Shouldn't everything be functional?
it is functional
It's not
And we're not going to let just any developer code on our site
and it is, why do you care, if you care, go copy paste it all into a PDF
10k users, you can find one if you try
And 1.5 million users who don't look at the API docs
Hmmm
Shouldn't take long
i don't see the point of adding mobile support for such a thing
Soo, anyone?
I guess I will work on a browser plugin
Plus the api page resemble alot like the discord api page
That can install in Firefox and chrome
And guess what the discord api docs also don't support mobile
And that fixes sidenav
Discord api docs work well in landscape mode?
The side thing scrolls
sounds like losing time to add mobile support for something 0.smth% users actually read
^
if you feel the need, go for it, I won't stop you
Ok
you can just load it as a desktop page on mobile
that's what i do when reading discord api docs
ยฏ_(ใ)_/ยฏ
I more mean small window support
Because thats an actual use case
When you only have 1 monitor
And want to multitask
were do i finde the bots
- not a question for #development 2. we told you, on the site
Can you use boolean values in MySQL
yes and no
MySQL doesn't natively store a boolean as "true" or "false". it uses 1 and 0
Yes
K
I think there is a BOOL data type
No
But it's stored as 1 and 0
Well there is a data type iirc that can do 1 and 0 only
TINYINT
that's what I was looking for
@earnest phoenix I use the datatype mentioned above and C# can convert 0 or 1 to a book natively so it will help
i need help
code
probilly mental but i can wait for that
const Discord = require('discord.js');
const settings = require("../settings.json");
exports.run = (client, message, args) => {
let auctionRole = message.guild.roles.find("name", "Auctions")
if (!auctionRole) return message.channel.send("This server dosen't have the **Auctions** Role. Have an administrator create the **Auctions** role in order to use this command.");
let title = args[0]
let bid = args[1]
let desc = args.slice(2).join(" ")
if (!args[2]) return message.channel.send("Please use the correct format: **<Title> <Starting Bid> <Description of item>**")
message.guild.createChannel(`Auction-${title}`, "text").then(c => {
let role = message.guild.roles.find("name", "Auctions")
let role2 = message.guild.roles.find("name", "@everyone");
c.overwritePermissions(role, {
SEND_MESSAGES: true,
VIEW_CHANNEL: true
});
c.overwritePermissions(role2, {
SEND_MESSAGES: false,
VIEW_CHANNEL: false
});
});
let auction = message.guild.channels.find('name', `Auction-${title}`)
const embed = new Discord.RichEmbed()
.setColor(0x00AE86)
.setAuthor(`Auction for ${title}`)
.addField("Budget:", bid)
.addField("description",desc)
.setTimestamp()
client.channels.get(auction).send(embed).catch(console.error);
message.channel.send("Auction has been posted!")
}
exports.help = {
name: 'create'
}```
error
for embed, if i set it to auction.id, it says cannot read id of null, if left how it is, cannot read property of send as undefined
if its says that id is null the auction is undefined
let auction = message.guild.channels.find('name', `Auction-${title}`)```
did you try console.logging auction
ill do that rn
comes out as null
somethings not working right
i cant find whats wrong
its in the correct sequence it should work
Can someone help with , how can I put an @here on my bot? When I put it on bot this dont work , dont mention everyone :/
If it does the proper tag (shows blue etc..) and doesn't actually notify anyone then it's a permission issue
so anyone can still help me?
Can someone help with , how can I put an @here on my bot? When I put it on bot this dont work , dont mention everyone :/
omfg
permissions
do you not see console
aH
i cant push to git repo
but then ill lose my progress wont i?
ehhhh
idk
but it looks like you published files to directly github which is not synced with the local ver
nah it just merges


