beebotteの使い方メモ.md
BeebotteはMQTTブローカ+REST API+Web Socketを提供するサービス。 無料アカウントでは50000メッセージ/日まで使える。
| - name: NHK BS1 | |
| type: BS | |
| channel: BS15_0 | |
| serviceId: 101 | |
| - name: BS日テレ | |
| type: BS | |
| channel: BS13_0 | |
| serviceId: 141 | |
| - name: BS朝日 | |
| type: BS |
| import asyncio | |
| import streamlit as st | |
| from httpx_oauth.clients.google import GoogleOAuth2 | |
| st.title("Google OAuth2 flow") | |
| "## Configuration" | |
| client_id = st.text_input("Client ID") |
| import os | |
| import logging.config | |
| import structlog | |
| from .app import app | |
| timestamper = structlog.processors.TimeStamper(fmt="iso") | |
| pre_chain = [ | |
| # Add the log level and a timestamp to the event_dict if the log entry is not from structlog. | |
| structlog.stdlib.add_log_level, |
beebotteの使い方メモ.md
BeebotteはMQTTブローカ+REST API+Web Socketを提供するサービス。 無料アカウントでは50000メッセージ/日まで使える。
| import asyncio | |
| import aiohttp | |
| import async_timeout | |
| from aiohttp import ClientError | |
| async def _fetch(session, url, coro): | |
| """HTTPリソースからデータを取得しコルーチンを呼び出す |
| import logging | |
| import discord | |
| from discord import app_commands | |
| from discord.ext import commands | |
| LOGGER: logging.Logger = logging.getLogger(__name__) |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
以下転載:
| # ==== Emojis ==== | |
| # 🐛 :bug: バグ修正 | |
| # 👍 :+1: 機能改善 | |
| # ✨ :sparkles: 部分的な機能追加 | |
| # 🎉 :tada: 盛大に祝うべき大きな機能追加 | |
| # ♻️ :recycle: リファクタリング | |
| # 🚿 :shower: 不要な機能・使われなくなった機能の削除 | |
| # 💚 :green_heart: テストやCIの修正・改善 |