Exemple #1
0
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()
Exemple #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()
Exemple #3
0
async def init(self):
    handlers.register(self, modname, dunnet_run)
Exemple #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)
Exemple #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)
Exemple #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()
Exemple #7
0
async def init(self):
    handlers.register(self, modname, status)
Exemple #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)
Exemple #9
0
async def init(self):
    handlers.register(self, modname, visit)
    handlers.register(self, modname, botany)
Exemple #10
0
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)
Exemple #11
0
async def init(self):
    handlers.register(self, modname, fortune)