Skip to content

Commit

Permalink
feat: added iu commant
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderlandpark committed Jan 15, 2021
1 parent 09e8ac3 commit 85f2b8a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
6 changes: 6 additions & 0 deletions command.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ router.post('/', verify, async( ctx, next ) => {
flags: 1 << 6
}
}
case '아이유':
return ctx.body = {
type: 4, data: {
content: `https://iu.wonder.im/images/${ctx.request.body.data.options[0].value}/?preventCache=${ctx.request.body.id}`
}
}
}
}
})
Expand Down
29 changes: 26 additions & 3 deletions register.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
}

test = {
"name": "이것저것테스트",
"name": "이것",
"description": "테스트 is best",
"options": [
{
"name": "role",
"name": "역할",
"description": "역할",
"type": 8
},
Expand All @@ -79,7 +79,30 @@
]
}

json = test
iu = {
"name": "아이유",
"description": "❤️",
"options": [
{
"name": "type",
"description": "사진의 타입입니다.",
"type": 3,
"required": True,
"choices": [
{
"value": "gif",
"name": "GIF 이미지"
},
{
"value": "profile",
"name": "프로필 이미지"
}
]
}
]
}

json = iu

# For authorization, you can use either your bot token
headers = {
Expand Down

1 comment on commit 85f2b8a

@wonderlandpark
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type error with commit message commant -> command

Please sign in to comment.