Coder Social home page Coder Social logo

codewithriza / pikastatsbot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 75 KB

Pika Stats Bot provides statistics for Pika Network games, offering player profiles, game stats, guild information, and daily vote reminders.

Home Page: https://discord.com/oauth2/authorize?client_id=1209050248958312448&permissions=551903422464&scope=bot

License: MIT License

Python 100.00%
discordbot discordpy pika pikanetwork pikanetwork-api pikastatsmod

pikastatsbot's Introduction

Pika Stats Bot

License

Pika Stats Bot is a Discord bot that provides statistics for Pika Network games, including Bedwars, Skywars, and more. It offers features like displaying player profiles, game stats, guild information, and daily vote reminders.

Features

  • Display Pika Network player profiles
  • Show game statistics for Bedwars, Skywars, and more
  • Provide information about Pika Network guilds
  • Send daily vote reminders to users

Usage

To use the bot, invite it to your Discord server using this invite link.

Once the bot is in your server, you can use the following commands:

  • /bw [player_name] [interval] [mode]: Get Bedwars stats for a player.
  • /sw [player_name] [interval] [mode]: Get Skywars stats for a player.
  • /friends [player_name]: List a player's friends.
  • /guild-info [guild_name]: Get information about a Pika Network guild.

For more commands, use /help.

How it Works

The bot uses the following API endpoints from Pika Network to gather data:

Retrieves information about a Pika Network guild

https://stats.pika-network.net/api/clans/{guild_name}

Retrieves leaderboard data for a player in a specific game mode.

https://stats.pika-network.net/api/profile/{player_name}/leaderboard?type={game_type}&interval={interval}&mode={mode}

Retrieves a player's profile information.

https://stats.pika-network.net/api/profile/{player_name}

Contributing

We welcome contributions from the community! If you'd like to contribute to the bot, please check out our contribution guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Note: Pika Stats Bot is not affiliated nor partnered with PikaNetwork!

Discord X

pikastatsbot's People

Contributors

codewithriza avatar

Stargazers

Aria avatar  avatar

Watchers

 avatar

pikastatsbot's Issues

Add Bedwars UI with PIL Library for Image Stats

Feature : Add Bedwars UI with PIL Library for Image Stats

Description:
Add a new feature to display a Bedwars UI using the PIL library. This feature should allow the generation of an image displaying various stats, such as player scores, rankings, and other relevant information. The UI should also support a background image specified by a URL.

Requirements:

  • Use the PIL library to generate the image.
  • Allow customization of the background image using a URL.
  • Display various stats in the UI, such as player scores, rankings, etc.

Local Test Result

Screenshot 2024-03-02 at 3 55 32 PM

Pika Player Stats Not Showing Correctly

Issue: Pika Player Stats Not Showing Correctly

Description:
The player stats from the Pika API are not displaying correctly. The stats for some players are missing or incorrect.

Steps to Reproduce:

  1. Open the command /bw
  2. Check the player stats section.
  3. Notice that some player stats are missing or incorrect.

Expected Behavior:
The player stats should be displayed correctly for all players.

Screenshot 2024-03-02 at 4 00 06 PM

Add image support to /bw and /sw commands

Description :
Add support for displaying images along with text-based statistics in the /bw and /sw commands. The images should visually represent the player's stats for a better user experience.

Expected Behavior :
When using the /bw or /sw command, the bot should display an image that complements the text-based statistics, providing a graphical representation of the player's stats.
Screenshot 2024-02-26 at 4 16 38 AM

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.