Skip to main content

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

Metadata

Release files for notashark 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notashark 1.1.1
File Size Uploaded Provenance Actions
notashark-1.1.1.tar.gz 53.2 kB Without provenance Details for notashark-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for notashark 1.1.1
File Interpreter ABI Platform Actions
notashark-1.1.1-py3-none-any.whl Python 3 none any Details for notashark-1.1.1-py3-none-any.whl

Total release size: 99.0 kB

Release files / notashark-1.1.1.tar.gz

Download URL notashark-1.1.1.tar.gz
Size 53.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4a42e97773814cf3c1967873b3c75d9a1691e27a753d59909ac5fccaf36361d3
BLAKE2b-256 checksum
How to use checksums
4453d6dcea28642043482f6cd449c6f429e87f4a18be41ae42fd9c0b5f644e5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / notashark-1.1.1-py3-none-any.whl

Download URL notashark-1.1.1-py3-none-any.whl
Size 45.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69d135434d62ab15cd538abde72fea9ea702956539cb99b5d7aaac09bfaee46c
BLAKE2b-256 checksum
How to use checksums
81e4b2cb361d5c20b16500d173f9a5de0753d8d8d534791a25bbdc26d7fd0bb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Security for notashark 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page