Skip to main content

Dola

Dola is a Python-based bot specialising in Splatoon and Slapp but also comes with some utility functions. Code on Github.

Import prefix is DolaBot.

Requirements

  • Python 3.9+

Bot Setup

  • Create a .env in the repository root with the following values:
# This is the bot's Discord token from the Developer API page.
BOT_TOKEN="xxxx.xxxx.xxxx"
# This is the bot's Discord Id.
CLIENT_ID=123456789
# This is your Discord Id.
OWNER_ID=123456789
# Path to SplatTagConsole for Slapp things
SLAPP_CONSOLE_PATH=".../SplatTagConsole.dll"
# Path to the Slapp App Data folder
SLAPP_DATA_FOLDER=".../SplatTag"
# Discord id of a logging channel (optional)
LOGS_CHANNEL=870436255777837098
# Bot command symbol (optional). 
# '~' by default or not specified.
# Recommend using a different symbol for local testing.
BOT_COMMAND_SYMBOL="+"

You must also set the relevant env values for SlappPy

Dockerised setup (not required)

  • The Dockerfile assumes SplatTag is under /bin. Adjust if necessary.
    • First, grab SplatTag and put it into the Docker build context, e.g.
    • . GrabSplatTag.bat

THEN

  • With Docker Desktop running,
  • docker build --no-cache --pull --tag="slate.azurecr.io/dola:latest" -f Dockerfile .

Test or run with

  • docker run -t -d slate.azurecr.io/dola

Update Azure Image with

After the build step, (note these commands are long in this window!)

  • az login
  • az acr login --name slate
  • docker push slate.azurecr.io/dola:latest
  • To stop:
    • az container stop --name dola --resource-group slapp-resource-group
  • To recreate from scratch (this should also re-pull the image)
    • az container create --resource-group slapp-resource-group --name dola --image slate.azurecr.io/dola:latest
    • The username is slate, and the password is in the ACR access keys.
  • To start:
    • az container start --name dola --resource-group slapp-resource-group

Azure Cloud setup from scratch

ACR_NAME=slate.azurecr.io
SERVICE_PRINCIPAL_NAME=acr-service-principal
ACR_REGISTRY_ID=$(az acr show --name $ACR_NAME --query id --output tsv)
SP_APP_ID=$(az ad sp show --id http://$SERVICE_PRINCIPAL_NAME --query appId --output tsv)
echo "Service principal ID: $SP_APP_ID"
SP_PASSWD=$(az ad sp create-for-rbac --name http://$SERVICE_PRINCIPAL_NAME --scopes $ACR_REGISTRY_ID --role acrpull --query password --output tsv)
echo "Service principal password: $SP_PASSWD"
az container create --resource-group slapp-resource-group --name dola --image slate.azurecr.io/dola

Metadata

Release files for DolaBot-Slate 1.0.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 DolaBot-Slate 1.0.1
File Size Uploaded Provenance Actions
DolaBot-Slate-1.0.1.tar.gz 52.0 kB Without provenance Details for DolaBot-Slate-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for DolaBot-Slate 1.0.1
File Interpreter ABI Platform Actions
DolaBot_Slate-1.0.1-py3-none-any.whl Python 3 none any Details for DolaBot_Slate-1.0.1-py3-none-any.whl

Total release size: 108.0 kB

Release files / DolaBot-Slate-1.0.1.tar.gz

Download URL DolaBot-Slate-1.0.1.tar.gz
Size 52.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8921d8ddc333aec14f5eb16258200bd50770b800a59abd681e11486bf5033d6c
BLAKE2b-256 checksum
How to use checksums
cf759d4e3bf2756ae4cab0283942e36cb275fbc763d7472e3ee15e84b344505d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

Release files / DolaBot_Slate-1.0.1-py3-none-any.whl

Download URL DolaBot_Slate-1.0.1-py3-none-any.whl
Size 56.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f8edc339ba7d438689e4314d52d6af3f098edc89635a71fa2dafa6430323420
BLAKE2b-256 checksum
How to use checksums
05a4ad2738f7473184f23aed364672a5b9da58c04839e4082a631a618066d69d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

Security for DolaBot-Slate 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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