dragonfire535 / xiao Goto Github PK
View Code? Open in Web Editor NEWXiao is a Discord bot coded in JavaScript with discord.js. With over 500 commands, she is one of the most feature-rich bots out there. Formerly XiaoBot.
License: Other
Xiao is a Discord bot coded in JavaScript with discord.js. With over 500 commands, she is one of the most feature-rich bots out there. Formerly XiaoBot.
License: Other
Is your feature request related to a problem? Please describe.
Please hide nsfw commands in the help command because there are some karens in my server complaining about that.
Describe the ideal solution
Replace the nsfw commands in the help command with nothinh
Describe alternatives you've considered
none
Additional context
Add any other context or screenshots about the feature request here.
Dependabot couldn't parse the package.json found at /package.json
.
You can mention @dependabot in the comments below to contact the Dependabot team.
Add contests category and command like you structure LAST MAN STANDING and GUESS THE NUMBER for Surgical Crow,
And i also want to know how to code these commands
LMS - If there is no message after last message for 30 seconds then he won!
GTN - The member guesses the number is the winner!
lmsinfo,lmswinners,lms,etc...
If we execute the Command:
x;say @ROLE Mention
The Bot Pings the Role.
This Can be Easily exploited by Malicious Users you know...
This can be Fixed by adding a Few Lines of Code in the Say Command:
if(!message.mentions.roles.first()) {
// Your Code..
}
else {
message.reply("No Pinging Roles!");
}
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I feel like adding an economy system (like dank memers) would be awesome for Xiao
Describe the ideal solution
A clear and concise description of what you want to happen.
(economy system, gambling, working, inventory with items)
(card based card games : poker) dms you your hand and then Xiao is the dealer
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
I would be fine without the economy system I just would really like to play poker with my friends
Just curious if there are moderation commands? I can't find them.
Music commands would be cool.
Hello, which API token should i put for the map command?
Geological google map API? if not then which? and how to get it?
thanks in advance
I Tried Hangman Command to be added on my Bot! But when i did that its telling
, Oh no, an error occurred: 401 Unauthorized. Try again later!
What to do?
Having This Issue
Xiao version: latest
Priority this issue should have – please be realistic and elaborate if possible:
I found this issue while self-hosting the bot.
Please describe the problem you are having in as much detail as possible:
so basically after my recent issue, you have updated the code but, when the users enter wrong answers, it says that the answer is incorrect and the msgs.size becomes 0
in console and then sends Game Ended Due to Inactivity, which should not happen
pleas check with other mp commands too, i dont use class with extend so i have edited the code(not the main functions) check my code
https://hasteb.in/kojadana.coffeescript (copy it)
Please describe the problem you are having in as much detail as possible:
Connect4 isn't working. I've tried to use this command in my own bot with the same command handler but it never worked. I challenged my friend and he said yes but it didn't start the game.
Further details:
Version: Latest
Priority this issue should have – please be realistic and elaborate if possible:
[ X] I found this issue while self-hosting the bot.
Got this error while trying to play mafia and wizard= players.filterArray is not a function
https://github.com/k3rn31p4nic/google-translate-api
Lets you use google translate for free.
*Found a problem with the Bot for Discord server
Problem:
The bot won't show itself
The mention can't find the Bot
Can't delete the Bot
Can't contact the Bot
Irequest the problem to be fixed immediately Thankyou~
Hey Bro. I have been inspired by your bot's image manipulation a lot. I have read all the commands and I used some of the commands in my bot too. I am recommending you adding a new roleplay command. I have added it in my bot and recommending you too.
it is called called NOM. that is , biting others in angry.
I hope it helps.
thankyou.
for example see this gif.
this.client.games.get , get's property is undefined
this.client.games.set , sett's property is undefined
this.client.games.delete , delete's property is undefined
please tell me, i was trying to add some games in my bot
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the ideal solution
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
I tried multiple times to make it work and haven't succeeded at all, I tried not editing any files didn't work,edit files didn't work can you run me through on how to install it?. I'm kinda new to java script so I'll try my best to understand I watched York,Evie and a bunch of other tutorials to understand and I got my bot to work but I can't seem to make this work.(I'll be self hosting as well)
So i recently was trying Your phone commands, they seem to be working fine when in 2 servers but when i try to use it in the 3rd server i can only send messages but cannot recieve them. Just wanted to know if it is natural or not!
is possible rendering sites porns ;---;
How can i make the bot on stop listening on mentions
I suggest you change your GitHub project description from "Your personal server companion." to "Your personal Discord server companion."
Hey, just stumbled upon Xiao and it looks great feature wise.
However i couldn't set it up.. installing canvas dependencies using the command:
apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
results in this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essential
E: Unable to locate package libcairo2-dev
E: Unable to locate package libpango1.0-dev
E: Couldn't find any package by glob 'libpango1.0-dev'
E: Couldn't find any package by regex 'libpango1.0-dev'
E: Unable to locate package libjpeg-dev
E: Unable to locate package libgif-dev
E: Unable to locate package librsvg2-dev
Hope u can help.
Thanks for your time.
A modmail command because i dont see much modmail bots
Is your feature request related to a problem? Please describe.
No
Describe the ideal solution
in NSFW Channel after you put an image command the bot will generate a image in following time like 5-10 seconds
Additional context
the idea is the make the bot in nsfw channel after entering some image command , the bot
will generate image by the following command for each time like 5 sec by defulat and be option to change
the time too before the bot will generate a new image
Is your feature request related to a problem? Please describe.
the mp games dont have a timeout, like if the both the users go offline the bot still sends the messages.
Describe the ideal solution
i want the bot to stop the game if there is no response by both the users for 2 times.
and say like game over, nobody responded
(node:16940) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'values' of undefined
happens when the user didnt type anything at this
@Firez folds! Pot - $500 Highest Bet - $200 (vaibhav#6771) @vaibhav, What Do You Want To Do? You Can raise <amount> or check.
here @vaibhav
didnt do anything, the bot responded with @vaibhav Checks
then the above error appeared. Fix this please
So I've been messing around with the "image.js" file to figure out if there is a way to be able to send the image after running a command using the "image" type, instead of having to send the image with the command. I just wanted to double check with you to see if that is possible and if i should waste my time messing with it. Sorry if this is dumb, I just don't want to stare at my screen for 4+ hours just to find out I can't do it lol
Is your feature request related to a problem? Please describe.
will u try to make a voicemail command as it can be a really good and unique feature
Describe the ideal solution
this will require a db, ik u are against db's still it might be worth it as i have never seen a bot sending voicemail. users can see the voicemails with a command. up to you if u want to! if you are willing to this i prefer quick.db
Please describe the problem you are having in as much detail as possible:
Further details:
Version:
Priority this issue should have – please be realistic and elaborate if possible:
I found this issue while self-hosting the bot.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I know you just rejected my pull request and I know that you probably aren’t looking for extra help or anything, but I have made a few new commands, and if you just looking for somebody to help you with new commands and small bug fixes I would really like to help (I don’t have to much to do)
Describe the ideal solution
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
This is by far one of the most amazing open-source bots I've ever seen, however I feel it is lacking one feature - Moderation commands. I think this is considerably self-explanatory; commands such as kick, ban, mute & discourage could really complete this bot and as I believe, could make it one of the best Discord bots - ever.
All the best,
Josh.
Love your project!!! I have a personal discord bot for a private small server based off your project.
There is this image manipulation library very similar to canvas, but has zero native dependencies called jimp.
link: https://www.npmjs.com/package/jimp
I was wondering if there is a reason why you prefer canvas instead of jimp. And if you need help with converting the code to use jimp instead of canvas 😊.
Hello is it possible a werewolf game in discord ?
const Command = require('../../structures/Command');
const permissions = require('../../assets/json/permissions');
const { MessageEmbed } = require('discord.js')
module.exports = class InviteCommand extends Command {
constructor(client) {
super(client, {
name: 'invite',
group: 'util-public',
memberName: 'invite',
description: 'Responds with the bot\'s invite links.',
guarded: true
});
}
async run(msg, args) {
const phrases = [
'Add me to your server with this link!',
'...'
]
const phrase = phrases[Math.floor(Math.random() * (phrases.length - 1))]
const guild_invite =
// let ad_invite = await guildInviteSchema.find({})
// .then(a => a.filter(a => client.guilds.cache.has(a.guildID) && a.invite.description && a.invite.link))
// .catch(() => null)
//
//
// ad_invite = ad_invite && ad_invite.length
// ? ad_invite[Math.floor(Math.random() * ad_invite.length)]
// : null
const embed = new MessageEmbed()
.setAuthor('Bear#3437')
.setColor('GREY')
.setTitle(`**Invite Xiao with the following permissions**`)
.addField(
'**Default Invite**'
, '<a:animatedcheck:762383226350075925> Xiao\'s Flagship Invite link used for advertising '
+ 'Xiao in her [website](website).'
, true)
.addField(
'**Recommended Invite**',
'<a:animatedcheck:762383226350075925> This invite grants Xiao all the necessary '
+ 'permissions for all of her functions to work.'
, true
)
.addField(
'**Full Permissions Invite**'
, '<a:animatedcheck:762383226350075925> This invite grants Xiao the `ADMINISTRATOR` '
+ 'permission privileges. \n\n'
, true
)
.addField('\u200b', '[**Click Here to Invite**](https://discord.com/oauth2/authorize?client_id=721100913611112470&scope=bot&permissions=1043721303)\n\u200b',true)
.addField('\u200b', '[**Click Here to Invite!**](https://discord.com/api/oauth2/authorize?client_id=---------&permissions=1342696567&scope=bot "Invite Xioa!")\n\u200b', true)
.addField('\u200b', '[**Click Here to Invite!**](https://discord.com/api/oauth2/authorize?client_id=--------&permissions=8&scope=bot "Invite XiaoTamako!")\n\u200b', true)
.addField(
'**No Moderator Priviledge**'
, '<a:animatedcheck:762383226350075925> This invite removes XiaoTamako\'s permission to '
+ 'Moderate the server and it\'s members. Use only if you don\'t want Xiao\'s Moderation commands.\n\n'
, true
)
.addField(
'**Basic Permissions**'
, '<a:animatedcheck:762383226350075925> The most basic permission for Xiao\'s basic commands to work.\n\n'
, true
)
.addField('\u200b','\u200b', true)
.addField('\u200b', '[**Click Here to Invite!**](https://discord.com/api/oauth2/authorize?client_id=--------&permissions=519249&scope=bot "Invite Xiao!")\n\u200b',true)
.addField('\u200b', '[**Click Here to Invite!**](https://discord.com/api/oauth2/authorize?client_id=------&permissions=379968&scope=bot "Invite Xiao!")\n\u200b', true)
.addField('\u200b','\u200b', true)
.addField(
`\u200b`
, guild_invite
? `Invite Link for this server: **---------------------------------**`
: 'Invite Link for this server: I haven\'t been given access to this server\'s Invite Links. if you are a `Server Moderator` '
+ 'and wishes to have your server invite link available for invite command on your server, grant me the `Manage_Server` permission.'
)
.addField('\u200b',
'Visit my website at: \u2000•\u2000\n'
+ 'Join my support server at: https://server'
).setFooter(`©️${new Date().getFullYear()} Xiao`)
return msg.embed(embed);
}
}
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/discordjs/Commando.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
It would be really helpful if u could solve this
Thank You
Please describe the problem you are having in as much detail as possible:
I have tried every api I can find to get the toxicity command to work. I really don't think its to hard to tell me where I can get the api keys cause what is "GOOGLE_KEY" very undescriptive and unhelpfull
Further details:
Version:
Priority this issue should have – please be realistic and elaborate if possible:
I found this issue while self-hosting the bot.
Hello,
I would like to ask for Encoders/Fansub commands, so that Xiao posts the progress for each category that an encoding process takes.
Xiao seems perfect so far but misses this feat, and actually, can't find it anywhere :/
Thanks a lot <3
FetchError: invalid json response body at https://opentdb.com/api.php?amount=1&type=multiple&encode=url3986 reason: Unexpected token < in JSON at position 0
const body = await request('https://opentdb.com/api.php?amount=1&type=multiple&encode=url3986')
const data = await body.json();
if (!data.results) return fetchQuestion();
const question = data.results[0];
const answers = question.incorrect_answers.map(answer => decodeURIComponent(answer.toLowerCase()));
const correct = decodeURIComponent(question.correct_answer.toLowerCase());
answers.push(correct);
const shuffled = shuffle(answers);
return {
question: decodeURIComponent(question.question),
answers: shuffled,
correct
};
}
How about a new translate command using > npm i google-translate-api?
Please describe the problem you are having in as much detail as possible:
every time I run a roleplay command or something that uses an "key" in the .env (I dont have any in there) I get the error (Oh no, an error occurred: 403 Forbidden. Try again later!) so I was just wodering if you could help me get some of the imgur albums and "key" so I can it to work
Further details:
Please describe the problem you are having in as much detail as possible:
everytime I run the airhorn command I get this
Further details:
Version:
Priority this issue should have – please be realistic and elaborate if possible:
I found this issue while self-hosting the bot.
i cant find the message event anywhere in this bots code,is it private,im trying to figure out how commando calls the "run" function.thus i have find the message event
I receive this error when I try to start the bot (I use Atom)
Error: Cannot find module './eastereggs.json'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\---\test\commands\random\easteregg.js:2:20)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.