Skip to content

Get rid of the use of .ini files #24

Description

@eamonburns

It would be simpler if the user could just define all settings in a python file.

botconf
    - __init__.py
    - secrets.py
# __init__.py

import secrets

COMMAND_PREFIX = "!"
GREETINGS = "hello|hi|hey"

COMMANDS = {
    "help": { type: "static", content: "..." },
    "echo": { type: "dynamic", function: command_echo }
}

def command_echo():
    ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions