modbot/mods/autoload.py

29 lines
847 B
Python
Raw Normal View History

2021-11-23 13:31:00 -06:00
# This file is part of modbot.
# modbot is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public
# License as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any
# later version.
# modbot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero
# General Public License along with modbot. If not, see
# <https://www.gnu.org/licenses/>.
# configuration
to_load = [
'ducks',
]
def init(srv):
for i in to_load:
try:
srv.load_mod(i)
except ModuleNotFoundError:
pass