これはdiscordpyとasyncpgを使用し、POSTTGRESQLにデータを保存する処理があるBOTを作ってる日本人向けに作成したものです
Project description
asyncpgw
これはdiscord.pyとasyncpgを使用し、POSTTGRESQLにデータを保存する処理があるBOTを作ってる日本人向けに作成したものです。
使い方
asyncpgwをインストール
python3 -m pip install asyncpg
基本的な使い方
ソースコードがかなり長くなってしまうので、 testsフォルダー にまとめてあります。
尚、このコードはCOG
を使用しています。
テキストチャットで発言するとユーザーのレベルがあがるコードを例にしてます。
変更ログ
0.0.1
・テスト
0.0.2
・descriptionの変更
0.0.3
・カラムが空だった場合に対応
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyncpgw-0.0.4.tar.gz
(3.1 kB
view hashes)