Giter VIP home page Giter VIP logo

ballsdex-discordbot's Introduction

BallsDex Discord Bot

Discord server Pre-commit Issues discord.py Black coding style Patreon

BallsDex is a bot for collecting countryballs on Discord and exchange them with your friends!

You can invite the bot here.

Discord server

Suggestions, questions and bug reports

Our self host support has ended and we no longer maintain a support server. Any bugs or issues can be raised by creating an issue on this repo, support issues will be closed.

Documentation

You can learn how to setup Ballsdex and use all of its tools on the wiki! More sections are added progressively.

Supporting

If you appreciate my work, you can support me on my Patreon!

Contributing

Take a look at the contribution guide for setting up your environment!

License

This repository is released under the MIT license.

If distributing this bot, credits to the original authors must not be removed.

ballsdex-discordbot's People

Contributors

arrayunderscore avatar flaree avatar georgesofronioucy avatar imtherealf1 avatar kingofthehill4965 avatar kowlin avatar laggron42 avatar ltzmax avatar maxxmxsz avatar predaaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ballsdex-discordbot's Issues

spawn issue

I've made a bot like BallsDex (around 18 february 2023) , sometimes (very rarely) balls spawns correctly but most of the time the balls doesn't spawn even with sending a lot of messages. How can I fix this ?

Error Code Issue

Ok so my friend is in the admin panel, but whenever he tries to create a ball, it gives him an error code 401 could you tell me what's wrong with it?

need help

the admin panel does not load.
500
Oops… You just found an error page

We are sorry but our server encountered an internal error

this happens when I try to load the site

Exchange history

A command to view the history of exchanged countryballs.

This probably requires creating a new table for exchanges while dropping the ˋtrade_player` field of ball instances.

I cannot open the ball instance section

I use Microsoft Edge and i turn on the bot, i try to enter the ball instance section and then appears this:
{"detail":"Can't found field 'count' in model <class 'ballsdex.core.models.BallInstance'>"}

Implement gateway proxy

Booting the bot takes about 5 minutes, waiting for all shards to connect, which is very annoying when applying multiple hotfixes.

This project fixes the issue by keeping alive the shards for a while, to let the bot resume connection immediately after a reboot.

This could be implemented using docker compose.

Admin commands

Need to ditch eval commands and implement useful commands for bot admins, including

  • Force spawning a chosen ball
  • Checking the spawner's debug stats
  • Giving away balls to a group of users
    • Tune the ball's stats
  • Alter the odds in specific events
  • Add a user to the blacklist (clearing the player’s entry, cascading to the balls’ deletion)

Docker Problem

On Docker whenever I do "docker compose up" it works perfectly, but then stops and says Error Code 5001 Missing access. And I'm trying to fix it, could you help me?

token not found

Skipping virtualenv creation, as specified in config file.
stateballsdex2-bot-1 | ------------------ BallsDex bot ------------------
stateballsdex2-bot-1 | Collect countryballs
stateballsdex2-bot-1 | Discord bot made by El Laggron
stateballsdex2-bot-1 |
stateballsdex2-bot-1 | Bot version: 1.4.0
stateballsdex2-bot-1 | Discord.py version: 2.2.0a
stateballsdex2-bot-1 |
stateballsdex2-bot-1 | 2023-02-17 19:46:50 ERROR ballsdex Token not found!
stateballsdex2-bot-1 | You must provide a token with the BALLSDEXBOT_TOKEN env var.
i have it named .env, i copied and pasted it and i entered the token? what happened

Bot does not respond

Hello, Is there an issue with the bot right now? Because I tryna watch my countryballs lists, and an error "The application did not respond" appeared, I tried again with the /help command but it does the same.
If it is a blacklist let me know so I can appeal it
Thanks you Screenshot_20230122_210358.jpg

Admin commands don't work for other admins

for some reason, the admin commands only work for the first admin. no others do. how would I fix this?
(what I mean is the other admin Ids get told that they don't have permission when trying to use it)

Docker not working

I'm having issues with docker, no matter what I try it won't work, I kept getting errors while opening docker desktop, I reset my computer but then after that I couldn't even download it and I don't know what I'm doing wrong

one final problem:

on my device, I fixed all of my problems. however, my friend wanted me to host the bot for him as well, and so I encountered the error of both of them trying to use the 8000 port, wiping my already created balls. I got on my old device, and now I'm encountering the error of "unable to connect to database" generating a constant 500 error on the website. please tell me how to fix this if you've encountered it.

.env file

time="2023-01-18T20:29:44+01:00" level=warning msg="The "POSTGRES_PASSWORD" variable is not set. Defaulting to a blank string."
time="2023-01-18T20:29:44+01:00" level=warning msg="The "POSTGRES_PASSWORD" variable is not set. Defaulting to a blank string."

What about this i type my postgres password and this in cmd pls help me

Admin panel not working

I cant go to admin panel because it says that this site does not enable secure connection, please help

Clean up shiny spawn algorithm

With the introduction of special instances with custom backgrounds, most of the logic behind shiny spawn has been coded again.

Shiny spawn is still hard-coded, would be better to remove that and make shiny balls spawn the same way event balls do.

TODO:

  • Allow special models without start and end date
  • Allow specifying a custom emoji to show in the list
  • Remove shiny-related code

Setup Grafana

For anti-cheat purposes, and also because nice-looking stats are cool, I'll try to setup a Grafana panel for the bot.

Some parts may be public, others private, here's my current plan.

Public stats

  • Count of countryballs caught
  • Count of countryballs exchanged
  • Count of players
  • Stats on the spawned balls (country, HP/ATK, shiny/special)

These stats should be able to separate servers and players.

Private stats

That's more sensitive, need to talk to users and Discord about how I will do this. Basically stats for anti-cheat purposes

  • Number of text channels
  • Number of members
  • Number of messages sent (excluding content)

Admin panel Bug.

The admin panel does not work and when I go on it, it says hmmm cannot find this page is there a way to fix this? If so, please tell me how to.

wsl

i need help with updating docker

Can't log in to admin pan

I try logging into the admin panel but it says "login_failed" even though I put my password and username correctly
I am not sure if the issue is with the admin panel or if I might have made a spelling mistake when setting the password

More commands

  • /last to view the latest countryball caught
  • /help to see a usage guide
  • /about for various info about the bot

Spawn Issue

I've made a discord bot like BallsDex but the balls doesn't spawn or it is extremely rare (even with sending a lot of messages).

what does it mean

what does it mean by "root of the repository" (im making my own variant of the bot called Britishdex for britishballs)

i've never worked with docker before

Battle mode

Make use of the stats and capacities for a battle mode.

Countryballs shop

Implement an economy system:

  • Sell countryballs
  • Buy countryballs in a centralized shop
  • Exchange currencies

Variation in stats (EV)

Differentiate countryballs with slight differences in stats when they spawn, kind of like EV in Pokémon.

BallsDex website

Need to design a basic website as a homepage to the bot. This needs the following

  • Terms of Service (required for app discovery)
  • Privacy policy (required for app discovery)
  • Home page with a brief overview of the features
  • Help pages
  • Links for Discord, Github, adding the bot...

I guess this will be done using jekyll.

Got randomly blacklisted from using the bot

Hello, this morning I woke up and decided to catch a countryball after like a week. Then the bot said I was blacklisted for some reason that the bot didn't tell me. Can I know why was I blacklisted and if I could be unblacklisted?
Screenshot_2023-01-19-10-36-23-05_572064f74bd5f9fa804b05334aa4f912

Disadvantage for Phone users

Phone users cannot open the "Catch me!" menu. It Shows them that the interactions failed. It after Makes people sad and angry. Please fix it.

Exit code 1

I have been making my own version of BallsDex, called MicroDex, for micronations. I have gotten setup to work before, but when I restarted, I cant start the Bot. Here is more details:

I clone the repo,
Then I create the .env
I run docker compose build
Then I run docker compose up. This should start the bot, as it has in the past, but now i get exit code 1. Everything in the container is started, except the bot.

Help

Add command to see ballsdex completion

Add a new slash command to view the player’s progression in the BallsDex (currently possessed countries, missing ones).

Also make sure this does not query the database too much.

Error

iscord.client logging in using static token
2023-02-07 17:22:48 CRITICAL ballsdex The main bot task didn't handle an exception and has crashed
Traceback (most recent call last):
File "/home/runner/BallsDex-DiscordBot/ballsdex/main.py", line 136, in bot_exception_handler
bot_task.result()
File "/home/runner/BallsDex-DiscordBot/venv/lib/python3.10/site-packages/discord/client.py", line 745, in start
await self.login(token)
File "/home/runner/BallsDex-DiscordBot/venv/lib/python3.10/site-packages/discord/client.py", line 580, in login
data = await self.http.static_login(token)
File "/home/runner/BallsDex-DiscordBot/venv/lib/python3.10/site-packages/discord/http.py", line 801, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/home/runner/BallsDex-DiscordBot/venv/lib/python3.10/site-packages/discord/http.py", line 680, in request
raise HTTPException(response, data)
discord.errors.HTTPException: 429 Too Many Requests (error code: 0): You are being blocked from accessing our API temporarily due to exceeding our rate limits frequently. Please read our docs at https://discord.com/developers/docs/topics/rate-limits to prevent this moving forward.
2023-02-07 17:22:48 WARNING ballsdex Attempting to die as gracefully as possible...
2023-02-07 17:22:48 INFO ballsdex Shutting down the bot...

Shiny countryballs

A way to get super-rare countryballs with an aesthetic variation. May be a golden background or something else.

Show initial exchange proposal

When initiating an exchange, the target player cannot see the proposed countryball before selecting one himself. The proposed ball should be shown in the first message.

.env Problem.

So, I'm making my own bot, but I met a problem. When I type in .env nothing happens it just changes the name and doesn't turn into a code could you help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.