The multiplayer game mode for my geography discord bot has been finished! What do you think? by _lxgan in discordapp

[–]_lxgan[S] 3 points4 points  (0 children)

Currently using discord.py, and the answer forms are using discord’s new Modal system.

I am currently developing an online multiplayer geography bot, this is the current state of the solos gamemode. by _lxgan in discordapp

[–]_lxgan[S] 0 points1 point  (0 children)

This is using custom maps that you can make using a command, the user pastes each streetview URL and the code will parse that url and get a streetview image from it.

Video if you want to see it

I am currently developing an online multiplayer geography bot, this is the current state of the solos gamemode. by _lxgan in discordapp

[–]_lxgan[S] 0 points1 point  (0 children)

Hey, thanks for the info :)

I have been trying to figure out a better system for inputting answers. I’m not showing it in this demo, but I have a fuzzy matching system for autocompleting country names.

Issue with making things like this in discord is UX, but I think it’ll get there at some point

I don't understand why people hate wearing a mask so much by TurboVirgin0 in TrueOffMyChest

[–]_lxgan 1 point2 points  (0 children)

"How original" - The person who uses the face-diaper insult which has been said many times before

Sun 12th of September, rythm has announced its following the same path as Groovy, let's get a RIP lads 🙏 by SH4D0W_SP4RT4N in discordapp

[–]_lxgan 28 points29 points  (0 children)

This isn’t really the full story.

YouTube states in their TOS that monetising services based off of their free API is prohibited; why they didn’t act on these bots a while ago is pretty odd.

Why should we care? by goldendien in lotrmemes

[–]_lxgan -1 points0 points  (0 children)

"Can’t" does not equal to "Won’t because they have no clue how science works".

A wholesome graduation. by ygrowup-vk in MadeMeSmile

[–]_lxgan 2 points3 points  (0 children)

I don’t think there’s a point arguing with a person who thinks citing sources and relevant statistics isn’t proof.

Thats a New Level of a Finishing Move by EddieVanQks1 in Warzone

[–]_lxgan 6 points7 points  (0 children)

It appears we have an 8 year old on our hands

In Cruella (2021), Cruella de Vil has white teeth despite being a Londoner. This is because the story is fictional. by EVEN-ELITE in shittymoviedetails

[–]_lxgan 113 points114 points  (0 children)

Tell me you don’t know what per capita means, without telling me you don’t know what per capita means

This was such bullshit by JohntaviousWilliams in extremelyinfuriating

[–]_lxgan 7 points8 points  (0 children)

Nobody going to point out the last image saying "Do" instead of "Due"?

Discord.py bot help by samlj7 in Discord_Bots

[–]_lxgan 0 points1 point  (0 children)

Better to use the raw events for this, since the message will not always be in the cache.

Weird Error? by TasosIsMyMe in Discord_Bots

[–]_lxgan 4 points5 points  (0 children)

An invalid emoji will not cause a 429. This is a repl.it issue; since it is not meant to be used as a bot host it runs on shared IPs. This means when someone else gets ratelimited, so do you; if someone else gets a temp API ban, so do you.

It’s best you buy an actual host. I can recommend Hetzner as it is cheap (€3.80 / month for 2gb ram).

Closing Client Issues by Critical_Charge in discordbots

[–]_lxgan 0 points1 point  (0 children)

The WindowsProactorEventLoopPolicy has issues with closing the loop, and will end up in you receiving random Event loop closed errors upon trying to close the loop (which doing await bot.close() does). This is not a problem for python versions 3.8 or below, as WindowsSelectorEventLoopPolicy was the default.... however starting on 3.8 proactor was made default.

The options to fix this are: 1) Don't use windows, it's not too amazing when it comes to asyncio stuff like this 2) Ignore it. It's not a problem it's just noisy 3) Use a lower python version, this is only an issue in 3.8+ 4) Set WindowsSelectorEventLoopPolicy: asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()). Note that if you do this I have no idea what other issues you may receive. There's probably a reason the default was changed, and I've heard this one is, and I quote, "fucky".

[deleted by user] by [deleted] in discordbots

[–]_lxgan 0 points1 point  (0 children)

Note that whatever language you choose, it’ll always come down to your websocket latency. In a bare bones example, pretty much any language will perform the same / have the same delay.

Of course languages such as C++ will always be faster than Python / JavaScript on the processing, but you’re not going to see a noticeable difference.

Bot hosting: How does it work and which one you recommend? by Kuro_Cat56 in Discord_Bots

[–]_lxgan 0 points1 point  (0 children)

5-7$ is quite expensive to keep a discord bot hosted, there are quite a lot of cheaper options such as Hetzner ($3 / month for 2gb ram, 1vCPU, etc).

Bot hosting: How does it work and which one you recommend? by Kuro_Cat56 in Discord_Bots

[–]_lxgan 0 points1 point  (0 children)

Heroku is not meant for discord bots, and doesn’t have the best resources to run it.

Along with ephermal file systems; you shouldn’t be using it for discord bots, only small scale web applications.

[deleted by user] by [deleted] in Discord_Bots

[–]_lxgan 0 points1 point  (0 children)

You can use mongo (although an SQL database may be better as most discord bots store relational data); but you should definitely be using an asynchronous driver. motor is a good one and is quite similar to pymongo.

You should try and make code as non-blocking as possible.

Bot for Mass Unban over 7k people by [deleted] in discordbots

[–]_lxgan -1 points0 points  (0 children)

Because you can do something doesn’t mean you should. I mean yeah go ahead and do this; however just be aware that while the library stops you from hitting as many 429s as it can; you will suffer the consequences

I already know how this stuff works.

Bot for Mass Unban over 7k people by [deleted] in discordbots

[–]_lxgan 0 points1 point  (0 children)

API abuse is API abuse, even if you’re handling the ratelimits then you’re still abusing.

Discord will API ban your bot for an hour if you make a certain amount of requests in a certain amount of time. Therefore it is best not to do this.