Giter Site home page Giter Site logo

clashkinginc / clashkingbot Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 9.0 85.46 MB

An Open Source Clash Of Clans Bot aiming to cover all possible features & do the heavy lifting so others don’t have to.

License: MIT License

Python 99.97% Dockerfile 0.03%
clashofclans discord-bot open-source python

clashkingbot's Introduction

ClashKing

Contributors
Forks
Stargazers
Issues
MIT License


Logo

Clashking

Clash of Clans family management bot for roles, player info, rankings, leaderboards, and more!
Explore the docs »

View Demo · Report Bug · Request Feature

ClashKing

An Open Source Clash of Clans Discord Bot pushing the boundaries of what is possible!

Built With

Sister Repositories

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request.
Don't forget to give the project a star! Thanks again!

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Discord: Demo & Support Server

clashkingbot's People

Contributors

deepsource-autofix[bot] avatar deepsourcebot avatar dnamcknight avatar hellodhruvin avatar magicthedev avatar westo48 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

Watchers

 avatar  avatar

clashkingbot's Issues

Enhancement Note: Add Townhall check for Clan Games and Raid Weekend message

Hello there,
I just wanted to point out that in the Clan Games and Raid Weekend messages, townhalls are included that are not able to participate.
If it is possible to fix this it would be much appreciated, but i understand that if you dont have this data already cached the additional requests could exceed the api limit of supercell and make this not so easy to implement.

Have a great day,
Andre

refactor .rank for speed

issues not entirely known, but should be able to reduce api/db calls to once, increasing speed

Refactor Rosters

Rosters works, but can be made faster w/ tweaks to reduce api/db calls

Move "troop methods" to the CustomPlayer Class

https://github.com/MagicTheDev/ClashKing/blob/9cae40b55ed3d978de77339726a099e5a664a006/utils/troop_methods.py#L1-L261

Move & integrate the troop methods in question to the CustomPlayer class here: https://github.com/MagicTheDev/ClashKing/blob/9cae40b55ed3d978de77339726a099e5a664a006/CustomClasses/CustomPlayer.py#L19
goal: improve reuse, remove unnecessary imports

  • Move troop methods
  • fix naming convention to be pythonic, is currently camel case
  • clean code (remove unnecessary loops, comments, etc)
  • fix dependent code

Simplify & Enhance Welcome Messages

https://github.com/MagicTheDev/ClashKing/blob/9cae40b55ed3d978de77339726a099e5a664a006/Setups/welcome_messages.py#L20-L119

Instead of the very bulky , hard to manage, & non-customizable welcome-messages currently
Let users create custom one, using - > https://autocode.com/tools/discord/embed-builder/
The output as js, so will have to edit it a bit to get json

  • Convert previous welcome messages to a format compatible with this

Command flow:

  • Run Command
  • Message Explaining where to create the code for the custom message
  • Explain in message, that if non-link buttons are created, they will have no functionality (for now)
  • Explain how to create a link to a discord channel (the functionality of the current buttons)
  • Buttons - one to open a modal to paste the code, second with link to the embed builder
  • Upon completion show what the embed looks like

Issue Templates

create issue templates to add structure and uniformity to issues

  • labels
  • bug template
  • feature template
  • wording change template
  • new command

Reorganize Cogs

Reorganize Cogs, floders & names, will be important for auto help command

Restructure Clan/Server Collections in DB

https://github.com/MagicTheDev/ClashKing/blob/9cae40b55ed3d978de77339726a099e5a664a006/CustomClasses/CustomBot.py#L93-L109

Currently Structure looks something like
DB - > Clan
DB - > Server
DB - > Server Feature (i.e Welcome Messages)

Needs to be changed to the following, to make making a Server Class & interactions with the DB easier
DB -> Server Collection -> clan fields, server feature fields
like - >
{
server_id : 0,
clans: [{
name : demo
tag: #2pp
}],
welcome_message : example
}

  • database restructure
  • change name of new db to not be "usafam"
  • code changed across bot to work with new db

(Suggestion) Report Missed Attacks at End of War.

Similar to the bot that sends a reminder/notification about an hour before the end of the war about who still has attack(s) left, how about a bot that will send a report of who missed their attack(s) at the end of the war. Either automatically or by command. This could help keep track of members that constantly miss attacks and help War Generals.

prune unnecessary branches

essentially update the repo to make sure the remote repo is up to date and all branches are either in use, in dev, or deleted

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.