mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
Add Docs Command
This commit is contained in:
parent
965ae310f6
commit
f135d4a81d
22
sopel_modules/SpiceBot_Docs/Docs.py
Normal file
22
sopel_modules/SpiceBot_Docs/Docs.py
Normal file
@ -0,0 +1,22 @@
|
||||
# coding=utf-8
|
||||
|
||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
||||
|
||||
import sopel.module
|
||||
|
||||
import spicemanip
|
||||
|
||||
from sopel_modules.SpiceBot_SBTools import sopel_triggerargs, bot_privs, github_dict
|
||||
|
||||
|
||||
def configure(config):
|
||||
pass
|
||||
|
||||
|
||||
def setup(bot):
|
||||
pass
|
||||
|
||||
|
||||
@sopel.module.nickname_commands('help', 'docs', 'wiki')
|
||||
def bot_command_owners(bot, trigger):
|
||||
bot.osd(["IRC Modules Repository", str(github_dict["url_main"] + github_dict["repo_owner"] + "/" + github_dict["repo_name"] + github_dict["url_path_wiki"])])
|
||||
8
sopel_modules/SpiceBot_Docs/__init__.py
Normal file
8
sopel_modules/SpiceBot_Docs/__init__.py
Normal file
@ -0,0 +1,8 @@
|
||||
# coding=utf8
|
||||
from __future__ import unicode_literals, absolute_import, division, print_function
|
||||
|
||||
from .Docs import *
|
||||
|
||||
__author__ = 'Sam Zick'
|
||||
__email__ = 'sam@deathbybandaid.net'
|
||||
__version__ = '0.1.1'
|
||||
@ -15,6 +15,18 @@ import codecs
|
||||
|
||||
import spicemanip
|
||||
|
||||
"""Variable References"""
|
||||
|
||||
github_dict = {
|
||||
"url_main": "https://github.com/",
|
||||
"url_api": "https://api.github.com/repos/",
|
||||
"url_raw": "https://raw.githubusercontent.com/",
|
||||
"url_path_wiki": "/wiki",
|
||||
"url_path_issues": "/issues",
|
||||
"repo_owner": "SpiceBot",
|
||||
"repo_name": "SpiceBot",
|
||||
}
|
||||
|
||||
|
||||
"""Sopel Wrapping Tools"""
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user