Skip to main content

notashark - a discord bot for King Arthur's Gold

Project description

notashark

Description:

notashark - discord bot for King Arthur's Gold, written in python + discord.py. Its designed to be able to run on multiple discord guilds at once, feature ability to setup some per-guild settings via chat commands (and save them between bot's sessions in simple json file) and be able to display all major information related to the game, including:

  • List of servers with total amount of players
  • Detailed server info with minimap and nicknames of players
  • Kagstats profile info
  • Kagstats leaderboards

You can see some usage screenshots in screenshots.

Development Status:

This bot is considered to be feature-complete. There may be some small fixes and improvements, but for the most - bot is already done and ready for daily usage.

Dependencies:

  • python 3.8 (may work on previous versions)
  • discord.py
  • requests
  • pykagapi

Installation:

From source:

  • git clone https://github.com/moonburnt/notashark.git
  • cd notashark
  • pip install .

From pypi:

  • pip install notashark

Discord permissions:

notashark require the following Privileged Gateway Intents to work:

  • Message Content Intent

You can configure them on developer portal (https://discord.com/developers/applications/), under Settings -> Bot -> Privileged Gateway Intents.

Usage:

Bot's development repository contain example launcher script, which, once configured, can be used as sort of "autorun template" to drop into cronjob and forget about. Below are examples of how to run bot without it.

Basic:

  • Run python -m notashark --show-logs --token=YOUR_TOKEN (where YOUR_TOKEN is your discord bot's token) This will run bot in its default configuration, suitable for most needs.

Recommended:

  • Set 'NOTASHARK_DISCORD_KEY' environment variable to your bot's discord token
  • python -m notashark -h to get list of all available launch flags
  • Run python -m notashark with whatever flags you like (there is no need to pass token as launch argument again - it will be fetched from envars). This is a bit more secure thus recommended way to use this bot.

Via Docker:

  • Build docker container: docker build .
  • Run docker container: docker run -e NOTASHARK_DISCORD_KEY={bot_token} {container_id}

LICENSE:

GPLv3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notashark-1.1.1.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notashark-1.1.1-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

Details for the file notashark-1.1.1.tar.gz.

File metadata

  • Download URL: notashark-1.1.1.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for notashark-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4a42e97773814cf3c1967873b3c75d9a1691e27a753d59909ac5fccaf36361d3
MD5 3a7ca67f86db24caebf254e107418caa
BLAKE2b-256 4453d6dcea28642043482f6cd449c6f429e87f4a18be41ae42fd9c0b5f644e5c

See more details on using hashes here.

File details

Details for the file notashark-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: notashark-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 45.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for notashark-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 69d135434d62ab15cd538abde72fea9ea702956539cb99b5d7aaac09bfaee46c
MD5 e2f4aa21d75231e584e3258562fb98ac
BLAKE2b-256 81e4b2cb361d5c20b16500d173f9a5de0753d8d8d534791a25bbdc26d7fd0bb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page