GithubHelp home page GithubHelp logo

discordbotportaljp / database Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 39 KB

Discordユーザから提供される情報を一元管理するアプリケーション

Home Page: https://discordbotportaljp.github.io/DiscordBotPortalJP/docs/logs/develop-discord-users-database.html

Python 99.29% Shell 0.71%

database's Introduction

database's People

Contributors

1ntegrale9 avatar grarich avatar shirataki2 avatar udon-ken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

yutarou12

database's Issues

登録時の認証

#2 (comment)
より

botの作者以外の登録を防ぐ仕組みがあるとよい。

ただ明確な公開botの場合は登録できるようにした方が良さそう。
(Dynoとかcarlとかが永遠に登録されないので)

DiscordBot版のプロトタイプ作成

コマンド操作で、

  • メモリ上にBotの名前を保存
  • メモリ上のBotの名前のリストを送信

ぐらいのシンプルなものをまず作る

コーディング規約の作成

命名規則、ブランチ名、その他諸々。

最終的にWikiにまとめますが、その前の議論をここでやります。

Actions が main ブランチのPRを探して NotFound エラーを出す

https://github.com/DiscordBotPortalJP/database/runs/1271101000

Run flake8 --ignore=E501 . | lintly --format=flake8 --log --commit-sha=
  flake8 --ignore=E501 . | lintly --format=flake8 --log --commit-sha=
  shell: /bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.6/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.6/x64/lib
    LINTLY_API_KEY: ***
Lintly: 2020-10-18 12:29:02,432 [DEBUG] lintly.builds: Using the following configuration:

Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - pr='main'
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - repo='DiscordBotPortalJP/database'
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - commit_sha='89f1c6d1387b58761cdbb1446bd1b2e51dc227dc'
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - api_key='********'
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - format='flake8'
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - fail_on='any'
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - post_status=True
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - request_changes=True
Lintly: 2020-10-18 12:29:02,433 [DEBUG] lintly.builds:   - github_check_run_id='313724567'
Lintly: 2020-10-18 12:29:02,433 [INFO] lintly.builds: Running Lintly against PR #main for repo DiscordBotPortalJP/database
Lintly: 2020-10-18 12:29:02,433 [INFO] lintly.builds: Lintly found violations in 0 files
Lintly: 2020-10-18 12:29:02,434 [DEBUG] lintly.backends.github: Sending a get request to /repos/DiscordBotPortalJP/database/pulls/main
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.6/x64/bin/lintly", line 8, in <module>
    sys.exit(main())
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/lintly/cli.py", line 74, in main
    build.execute()
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/lintly/builds.py", line 76, in execute
    diff = self.get_pr_diff()
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/lintly/builds.py", line 86, in get_pr_diff
    return self.git_client.get_pr_diff(self.config.pr)
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/lintly/backends/github.py", line 171, in get_pr_diff
    diff = client.get(diff_url, headers={'Accept': GITHUB_DIFF_HEADER})
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/lintly/backends/github.py", line 85, in get
    return self._do_request('get', url, data, headers)
  File "/opt/hostedtoolcache/Python/3.8.6/x64/lib/python3.8/site-packages/lintly/backends/github.py", line 112, in _do_request
    raise NotFoundError(response.content, status_code=response.status_code)
lintly.backends.errors.NotFoundError: b'{"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/pulls#get-a-pull-request"}'
Error: Process completed with exit code 1.

Discord Bot 版の技術選定

  • DiscordBot
    • discord.py (Bot Frameworkを採用して Extention/Cog を実装)
    • aiohttp (DBやAPIに接続する際に利用)
  • データベース(Bot情報の保存先)
    • Heroku Postgres
      • 無料で1万bot分保存可能
      • $9/month課金で1000万bot分保存可能
  • WebAPI
    • FastAPI (PythonのAPI向けWebフレームワーク)
  • サーバー
    • Heroku (WebAPI用)
    • Botのサーバーは各Botの稼働環境にお任せ

チームへの招待

チームメンバーでないとForkして開発しなければいけなくて面倒なので、
チームメンバーにして、直接cloneしてpushしてPR立てられるようにします。

招待するので、参加する方はこちらにコメントをお願いします!

Botの動作環境について

個人で環境構築して動かすにも、Herokuやその他VPSで動かすにも、Docker + Docker-Composeが勝手がいいのでDocker + Docker-Composeを使うのはどうでしょうか。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.