cortana-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
const fetch = require('node-fetch'); | ||
exports.chatbot = async function(message) { | ||
exports.cortana = async function(message) { | ||
message.channel.startTyping(); | ||
const args = message.content.toLowerCase().replace(/<@(.*?)>/, '').replace(/[^0-9a-z]/gi, '').replace(/\s/, ''); | ||
try{ | ||
if(message.author.bot)return | ||
fetch(`https://pepee.ga/chat?message=${args}`) | ||
@@ -7,0 +8,0 @@ .then(res => res.json()) |
{ | ||
"name": "cortana-api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
884
16