1
0
forked from jan6/bot6

allow ignoring other bots

This commit is contained in:
jan6 2022-10-04 19:24:25 -07:00
parent 1808fa74f0
commit 87c5f14218
2 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,7 @@ class config(config):
# useful for testing broken commands which should still be normal-user accessible
# commands which should only ever be used by admins, should be designated as such in code, not through here (e.g. exit)
admin_only = []
ignored_nicks = []
capabilities = [ # what capabilities shall we request?
"message-tags", # needed for account-tag!

View File

@ -170,8 +170,9 @@ def stuff(bot, sock):
or cmd[0] in prefixes
or "https://" in cmd
or "http://" in cmd
# or cmd.startswith("https://")
):
if line.hostmask.nickname in config.cmd.ignored_nicks:
continue
try:
# if message in a channel, remove prefixes
if is_pm: