mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Can do this instead
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class StrawpollCommand extends Command {
|
|||||||
if (options.length > 31) return msg.say('Please provide thirty or less choices.');
|
if (options.length > 31) return msg.say('Please provide thirty or less choices.');
|
||||||
try {
|
try {
|
||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.post('https://strawpoll.me/api/v2/polls', { followRedirects: true })
|
.post('https://www.strawpoll.me/api/v2/polls')
|
||||||
.set({ 'Content-Type': 'application/json' })
|
.set({ 'Content-Type': 'application/json' })
|
||||||
.send({ title, options });
|
.send({ title, options });
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "35.1.5",
|
"version": "35.1.6",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user