Skip to content

Do not accept command in direct messages (optional) #2

@attakei

Description

@attakei

Example code

def list(self, msg, *args):
    if self.config['not_dm'] and msg.is_dm:
        return "This command can run channel only"

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