From ad97a84075904e36acce2644166e00be53b3e120 Mon Sep 17 00:00:00 2001
From: Kyomotoi <1172294279@qq.com>
Date: Tue, 28 Apr 2020 20:37:45 +0800
Subject: =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B=E7=90=90?=
=?UTF-8?q?=E7=A2=8E=E7=9A=84=E5=B0=8F=E9=85=8D=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/Aya.iml | 11 ++
.idea/misc.xml | 7 +
.idea/modules.xml | 8 +
.idea/vcs.xml | 6 +
.idea/workspace.xml | 219 +++++++++++++++++++++
AyaBot/plugins/__pycache__/awsl.cpython-37.pyc | Bin 735 -> 1029 bytes
.../plugins/__pycache__/bilibilifan.cpython-37.pyc | Bin 803 -> 1083 bytes
AyaBot/plugins/awsl.py | 11 +-
AyaBot/plugins/bilibili/__init__.py | 0
.../bilibili/__pycache__/__init__.cpython-37.pyc | Bin 0 -> 134 bytes
AyaBot/plugins/bilibili/index.py | 3 +
AyaBot/plugins/bilibilifan.py | 29 ---
date.py | 8 +
13 files changed, 270 insertions(+), 32 deletions(-)
create mode 100644 .idea/Aya.iml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/workspace.xml
create mode 100644 AyaBot/plugins/bilibili/__init__.py
create mode 100644 AyaBot/plugins/bilibili/__pycache__/__init__.cpython-37.pyc
create mode 100644 AyaBot/plugins/bilibili/index.py
delete mode 100644 AyaBot/plugins/bilibilifan.py
create mode 100644 date.py
diff --git a/.idea/Aya.iml b/.idea/Aya.iml
new file mode 100644
index 0000000..6711606
--- /dev/null
+++ b/.idea/Aya.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..8656114
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..eca873e
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..f7341f9
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1588051377355
+
+
+ 1588051377355
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AyaBot/plugins/__pycache__/awsl.cpython-37.pyc b/AyaBot/plugins/__pycache__/awsl.cpython-37.pyc
index 46a8162..c06634f 100644
Binary files a/AyaBot/plugins/__pycache__/awsl.cpython-37.pyc and b/AyaBot/plugins/__pycache__/awsl.cpython-37.pyc differ
diff --git a/AyaBot/plugins/__pycache__/bilibilifan.cpython-37.pyc b/AyaBot/plugins/__pycache__/bilibilifan.cpython-37.pyc
index a0b53ed..e6f89bd 100644
Binary files a/AyaBot/plugins/__pycache__/bilibilifan.cpython-37.pyc and b/AyaBot/plugins/__pycache__/bilibilifan.cpython-37.pyc differ
diff --git a/AyaBot/plugins/awsl.py b/AyaBot/plugins/awsl.py
index c476d59..2916d8c 100644
--- a/AyaBot/plugins/awsl.py
+++ b/AyaBot/plugins/awsl.py
@@ -1,14 +1,19 @@
+import random
from nonebot import on_command, CommandSession
-@on_command('阿这')
+@on_command('阿这', only_to_me=False)
async def _(session: CommandSession):
await session.send('阿这')
-@on_command('喵', aliases=['喵喵', '喵喵喵'])
+@on_command('喵', aliases=['喵喵', '喵喵喵'], only_to_me=False)
async def _(session: CommandSession):
await session.send('喵~')
-@on_command('奶宝', aliases=['@๑ ^ ₃•๑', '奶够翘'])
+@on_command('奶宝', aliases=['@๑ ^ ₃•๑', '奶够翘'], only_to_me=False)
async def _(session: CommandSession):
await session.send('别叫了别叫了,8在')
+
+@on_command('抽签', only_to_me=False)
+async def _(session: CommandSession):
+ await session.send(str(random.choice(['大凶', '小凶', '凶', '吉', '小吉', '中吉', '大吉'])))
\ No newline at end of file
diff --git a/AyaBot/plugins/bilibili/__init__.py b/AyaBot/plugins/bilibili/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/AyaBot/plugins/bilibili/__pycache__/__init__.cpython-37.pyc b/AyaBot/plugins/bilibili/__pycache__/__init__.cpython-37.pyc
new file mode 100644
index 0000000..a197886
Binary files /dev/null and b/AyaBot/plugins/bilibili/__pycache__/__init__.cpython-37.pyc differ
diff --git a/AyaBot/plugins/bilibili/index.py b/AyaBot/plugins/bilibili/index.py
new file mode 100644
index 0000000..c887183
--- /dev/null
+++ b/AyaBot/plugins/bilibili/index.py
@@ -0,0 +1,3 @@
+import requests
+import nonebot
+import json
diff --git a/AyaBot/plugins/bilibilifan.py b/AyaBot/plugins/bilibilifan.py
deleted file mode 100644
index 91a0bd4..0000000
--- a/AyaBot/plugins/bilibilifan.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import requests
-import json
-from nonebot import on_command, CommandSession
-
-
-@on_command('番剧索引')
-async def _(session: CommandSession):
- # url = 'https://api.bilibili.com/pgc/season/index/result?season_version=-1&area=-1&is_finish=-1©right=-1&season_status=-1&season_month=-1&year=-1&style_id=-1&order=3&st=1&sort=0&page=1&season_type=1&pagesize=20&type=1'
-
- res = requests.get(
- 'https://api.bilibili.com/pgc/season/index/result?season_version=-1&area=-1&is_finish=-1©right=-1&season_status=-1&season_month=-1&year=-1&style_id=-1&order=3&st=1&sort=0&page=1&season_type=1&pagesize=20&type=1',
- headers={
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
- }
- )
-
- data = res.json()
- print(['list'])
- # JSON.data.list = data['JSON.data.list']
- # reply = ''
- # for JSON.data.list in JSON.data.list:
- # title = data.list['title']
- # url = data.list['link']
- # reply += f'\n{title}\n{url}'
- # session.send('今日番剧索引如下: \n' + reply)
-
- # if not list:
- # await session.send('暂时无法返回请求,或服务器变奇怪了...')
- # return
\ No newline at end of file
diff --git a/date.py b/date.py
new file mode 100644
index 0000000..988fad1
--- /dev/null
+++ b/date.py
@@ -0,0 +1,8 @@
+import time
+from datetime import datetime
+import pytz
+
+
+
+
+print(thisyear())
--
cgit v1.2.3