Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
__ztr
Python_275306
提交
209fc8dd
P
Python_275306
项目概览
__ztr
/
Python_275306
与 Fork 源项目一致
Fork自
inscode / Python
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Python_275306
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
209fc8dd
编写于
4月 27, 2023
作者:
6
62918bc062e94773587808ef
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Thu Apr 27 07:27:00 UTC 2023 inscode
上级
df352508
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
57 addition
and
1 deletion
+57
-1
1.html
1.html
+1
-0
main.py
main.py
+56
-1
未找到文件。
1.html
0 → 100644
浏览文件 @
209fc8dd
{"servers":{"vultr-miami":{"id":"xov","ipv4":"144.202.38.187","ipv6":"2001:19f0:9003:026d:5400:04ff:fe69:e71e"},"vultr-frankfurt":{"id":"xow","ipv4":"45.76.82.193","ipv6":"2001:19f0:6c01:0986:5400:04ff:fe69:e71f"},"vultr-tokyo":{"id":"xox","ipv4":"198.13.63.88","ipv6":"2001:19f0:7001:1dec:5400:04ff:fe69:e720"}}}
\ No newline at end of file
main.py
浏览文件 @
209fc8dd
print
(
'欢迎来到 InsCode'
)
\ No newline at end of file
# This example requires the 'message_content' intent.
import
discord
import
requests
import
json
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Mobile Safari/537.36'
}
url
=
'https://api.n.m28.io/endpoint/florrio-map-1-green/findEach/'
param
=
{
}
response
=
requests
.
get
(
url
=
url
,
params
=
param
,
headers
=
headers
)
#三个参数
print
(
type
(
response
))
ctx
=
response
.
text
with
open
(
'1.html'
,
'w'
,
encoding
=
'utf-8'
)
as
df
:
df
.
write
(
ctx
)
print
(
'保存成功'
)
intents
=
discord
.
Intents
.
default
()
intents
.
message_content
=
True
client
=
discord
.
Client
(
intents
=
intents
)
@
client
.
event
async
def
on_ready
():
print
(
f
'We have logged in as
{
client
.
user
}
'
)
@
client
.
event
async
def
on_message
(
message
):
if
message
.
author
==
client
.
user
:
return
if
message
.
content
.
startswith
(
'.h'
):
await
message
.
channel
.
send
(
"FLORR ULTRA FINDER BOT!
\n
You can use `.h` to get help!
\n
You can use `.s` to get all the servers!"
)
if
message
.
content
.
startswith
(
'.s'
):
await
message
.
channel
.
send
(
"finding........
\n
"
)
st
=
"```"
for
i
in
range
(
1
,
1
)
:
headers
=
{
'User-Agent'
:
'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Mobile Safari/537.36'
}
url
=
'https://api.ztrztr.top/api/u'
param
=
{
}
response
=
requests
.
get
(
url
=
url
,
params
=
param
,
headers
=
headers
)
#三个参数
print
(
type
(
response
.
text
))
print
(
response
.
json
())
print
(
json
.
loads
(
response
.
text
))
print
(
type
(
response
.
json
()))
ssss
=
str
(
i
);
if
i
<
10
:
ssss
=
'0'
+
ssss
st
=
st
+
'MAP'
+
ssss
+
': | NA: '
+
response
.
json
()[
"servers"
][
"vultr-miami"
][
"id"
]
+
" | EU: "
+
response
.
json
()[
"servers"
][
"vultr-frankfurt"
][
"id"
]
+
" | AS: "
+
response
.
json
()[
"servers"
][
"vultr-tokyo"
][
"id"
]
+
"
\n
"
st
=
st
+
"```"
await
message
.
channel
.
send
(
st
)
client
.
run
(
'MTA5OTE1MjI3MTEwOTAwNTUwMg.G2UpYf.vOzvjUFalWQci5CUPnFBHUmMtf9JZ5vZKNQXVM'
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录