Discord Bot 利用者/開発者のための情報共有コミュニティです。
discordbotportaljp / daug.py Goto Github PK
View Code? Open in Web Editor NEWdiscord.py を利用した Discord Bot 向け機能拡張ライブラリ
Home Page: https://pypi.org/project/Daug/
discord.py を利用した Discord Bot 向け機能拡張ライブラリ
Home Page: https://pypi.org/project/Daug/
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
スレッドには「質問者の対応待ち」と「回答待ち」の2つのステータスがあるが、
現状では回答待ちのスレッドに気付きにくい。
チャンネルを移植する際、元のチャンネルにあったピン留めを参照し、同様の移植後メッセージもピン留めするようになってくれると、より使いやすくて嬉しいです。
1ユーザが1チャンネルまでしか作成できない仕様があり、
チャンネルのトピックを参照する処理の中で、
トピックが空の場合に以下のエラーが発生する。
Ignoring exception in on_message
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "/app/.heroku/python/lib/python3.8/site-packages/Daug/cogs/thread.py", line 165, in on_message
await self.dispatch_thread(message)
File "/app/.heroku/python/lib/python3.8/site-packages/Daug/cogs/thread.py", line 45, in dispatch_thread
if channels := [ch for ch in category_open.text_channels if str(message.author.id) in ch.topic]:
File "/app/.heroku/python/lib/python3.8/site-packages/Daug/cogs/thread.py", line 45, in <listcomp>
if channels := [ch for ch in category_open.text_channels if str(message.author.id) in ch.topic]:
TypeError: argument of type 'NoneType' is not iterable
ISSUESに1文で質問する文化が形成されてそれを真似られるのをシステムで撲滅する
有益でないチャンネルをアーカイブする方針にしているが、
チャンネルの1部の発言だけ有益な場合にアーカイブしにくい場合が多い
エラー内容
2020-09-29T18:05:02.983059+00:00 app[discordbot.1]: Ignoring exception in on_message
2020-09-29T18:05:02.983350+00:00 app[discordbot.1]: Traceback (most recent call last):
2020-09-29T18:05:02.983665+00:00 app[discordbot.1]: File "/app/.heroku/python/lib/python3.8/site-packages/discord/client.py", line 312, in _run_event
2020-09-29T18:05:02.983667+00:00 app[discordbot.1]: await coro(*args, **kwargs)
2020-09-29T18:05:02.983894+00:00 app[discordbot.1]: File "/app/.heroku/python/lib/python3.8/site-packages/Daug/cogs/thread.py", line 154, in on_message
2020-09-29T18:05:02.983896+00:00 app[discordbot.1]: if self.is_category_closed(channel):
2020-09-29T18:05:02.987561+00:00 app[discordbot.1]: File "/app/.heroku/python/lib/python3.8/site-packages/Daug/cogs/thread.py", line 71, in is_category_closed
2020-09-29T18:05:02.987562+00:00 app[discordbot.1]: if '✅' in channel.category.name:
2020-09-29T18:05:02.987642+00:00 app[discordbot.1]: AttributeError: 'NoneType' object has no attribute 'name'
以下の2点を理由としてパッケージ化を行う
回答者が情報提供を促さなければいけない場面が多いため、
手間削減のために引用可能な定型文を用意する。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.