Giter VIP home page Giter VIP logo

frucht-bot's Introduction

frucht-bot

About

  • Link CoC accounts to your discord account by using the ingame api token under 'more settings'
  • Manage roles which will be given to verified members depending on the townhall level their CoC accounts have
  • Relevant data is saved into a sqlite database

Setup

config.json (root directory)

{
	"clientId": "<client id of the bot>",
	"guildId": "<guild id of your discord guild>",
	"token": "<bot token>",
	"coctoken": "<CoC developer api token>",
	"database": "<database name>",
	"dbuser": "<database user>",
	"dbpw": "<database password>"
}

Commands

  • Options marked with <> are optional, others are needed
/ options description auto role update
clashlink playerid usertoken Links your Discord account to the given CoC account
clashunlink playerid Unlinks your Discord account from the given CoC account
clashroles edit townhall role Edit/Add a townhall role entry
clashroles delete townhall Delete a townhall role entry
clashroles showall Shows the current townhall roles
clashroles update <user> <update_coc_cache> Updates (adds/removes) the roles from a specific user or from all users
clashinfo player playerid Shows you whether this CoC account is linked to someone
clashinfo user user Shows you all CoC accounts that are linked to the given user
clashinfo clan clanid Work in progress

frucht-bot's People

Contributors

lakinator avatar

Watchers

 avatar  avatar

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.