示例#1
0
文件: start.py 项目: armory3d/armory
def register():
    armutils.register()
    props_traits_action.register()
    props_traits_clip.register()
    props.register()
    props_ui.register()
    props_renderer.register()
    handlers.register()
    nodes_logic.register()
    nodes_renderpath.register()
    props_traits_params.register()
    props_traits.register()
    props_lod.register()
    props_navigation.register()
    space_armory.register()
    keymap.register()
示例#2
0
def register():
    global registered
    registered = True
    armutils.register()
    props_traits_action.register()
    props_traits_clip.register()
    props_traits_library.register()
    props.register()
    props_ui.register()
    props_renderer.register()
    nodes_logic.register()
    handlers.register()
    nodes_renderpath.register()
    props_traits_params.register()
    props_traits.register()
    props_lod.register()
    props_navigation.register()
    space_armory.register()
    keymap.register()
示例#3
0
文件: dunnet.py 项目: kiedtl/ircbot
async def init(self):
    handlers.register(self, modname, dunnet_run)
示例#4
0
async def init(self):
    handlers.register(self, modname, submissions_search)
    handlers.register(self, modname, submissions_for_url)
    handlers.register(self, modname, submission_info)
示例#5
0
async def init(self):
    # disabled, now that tildebot is a thing
    # handlers.register(self, modname, handle_yt)
    handlers.register(self, modname, yt_info)
示例#6
0
# -*- coding: utf-8 -*-
from telethon import TelegramClient, sync
import handlers

import logging
logging.basicConfig(level=logging.ERROR)

# You must include your API_ID, API_HASH and SESSION_NAME in their respective files. You can get them on my.telegram.org.
api_id = int(open("api_id", "r").read())
api_hash = open("api_hash", "r").read().rstrip()
session_name = open("session_name", "r").read().rstrip()

client = TelegramClient(session_name, api_id, api_hash)

# This connects the client to the Telegram Account
client.start()

# Calls the register function, to add all the event handlers
handlers.register(client)

client.run_until_disconnected()
示例#7
0
文件: status.py 项目: kiedtl/ircbot
async def init(self):
    handlers.register(self, modname, status)
示例#8
0
async def init(self):
    handlers.register(self, modname, show_help)
    handlers.register(self, modname, show_commands)
    handlers.register(self, modname, show_modules)
    handlers.register(self, modname, which_module)
示例#9
0
async def init(self):
    handlers.register(self, modname, visit)
    handlers.register(self, modname, botany)
示例#10
0
文件: admin.py 项目: kiedtl/ircbot
async def init(self):
    handlers.register(self, modname, dump)
    handlers.register(self, modname, quit)
    handlers.register(self, modname, restart)
    handlers.register(self, modname, load_mod)
    handlers.register(self, modname, unload_mod)
    handlers.register(self, modname, reloadmods)
    handlers.register(self, modname, part)
    handlers.register(self, modname, join)
    handlers.register(self, modname, joinall)
    handlers.register(self, modname, ev)
    handlers.register(self, modname, send)
    handlers.register(self, modname, shutup)
    handlers.register(self, modname, wake)
示例#11
0
文件: fortune.py 项目: kiedtl/ircbot
async def init(self):
    handlers.register(self, modname, fortune)