Giter Club home page Giter Club logo

xiao's People

Contributors

1computer1 avatar amishshah avatar bullfrog098 avatar dependabot-preview[bot] avatar dependabot[bot] avatar dragonfire535 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

xiao's Issues

please hide nsfw commands in help command

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.

Last Man Standing Command

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...

Problem in the Say Command

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!");
}

Economy System/Poker

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

Google Token Map command

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

Hangman

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.

    • Node.js version: Latest
    • Commit hash:
    • Operating system: VPS Glitch.com

error in quizduel game and maybe other mp games

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)

ypeError: user.displayAvatarURL is not a function

image
"@󠀀󠀀 󠀀󠀀󠀀󠀀 󠀀󠀀._Rain Shadow, An error occurred while running the command: TypeError: user.displayAvatarURL is not a function
You shouldn't ever receive an error like this."

^ This is what the bot replies with every time I try to use the avatar-edit commands... what does it mean?

Connect4 error

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.

    • Node.js version: LAtest
    • Commit hash: Latest
    • Operating system:Windows

Asking a new roleplay command

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.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

Last Man Standing

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.

How to make it work?

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)

Misleading project description

I suggest you change your GitHub project description from "Your personal server companion." to "Your personal Discord server companion."

Android Support?

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.

image by command generating

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

A Timeout function in mp games, if no response by users

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

Describe alternatives you've considered

Additional context

Issue related to poker command

(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

Image argument type doesn't accept data from prompts.

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

Voicemail for phonecall command

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

great bot

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.

    • Node.js version: v13.6.0
    • Commit hash: v13.6.0
    • Operating system: windows 10 x64
      Evry time i try pm2 i get this erorr but its working fine with
      node Xiao.js !
      please some help and thank you for share this awesome bot :)
      2020-01-24_6-46-21

Meme files and commands

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.

Suggestion: moderation commands.

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.

jimp instead of canvas

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 😊.

invite.js

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);
  }
}

Hey im getting an error message when i do "npm i --production"

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

what r the apis

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.

    • Node.js version:
    • Commit hash:
    • Operating system:

[Feature request] Progress updates for Encoding/Fansub teams

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

no timeout for poker command

image

There's no timeout for this, its a continuos loop, also i think the winner part is never executed, please check the code

OpenTDB not responding

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
      };
    }

Translate Command

How about a new translate command using > npm i google-translate-api?

Oh no, an error occurred: 403 Forbidden. Try again later!

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:

  • Version: latest

  • Priority this issue should have – please be realistic and elaborate if possible:
    medium its probably only for me but its still super annoying

  • I found this issue while self-hosting the bot.

    • Node.js version: node: '12.16.1',

    • Commit hash: idk
      bruh

    • Operating system: Windows 10

Error: FFmpeg/avconv not found!

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.

    • Node.js version:
    • Commit hash:
    • Operating system:

Error

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.