Example #1
0
import config
import hoshino
import asyncio
bot = hoshino.init(config)
app = bot.asgi

if __name__ == '__main__':
    bot.run(use_reloader=False, loop=asyncio.get_event_loop(), debug=False)
Example #2
0
import hoshino
import asyncio

bot = hoshino.init()
app = bot.asgi

if __name__ == '__main__':
    bot.run(use_reloader=False, loop=asyncio.get_event_loop())
Example #3
0
import nonebot
from nonebot.adapters.cqhttp import Bot

nonebot.init(debug=True)

nonebot.get_driver().register_adapter('cqhttp',Bot)

nonebot.load_plugin('nonetrip')

import hoshino

hoshino.init()
nonebot.run(port=2333)