Git Product home page Git Product logo

sneyra's Introduction

Sneyra

Sneyra is a music bot (yeah, another bot in this world) built on top of Klasa, and uses Discord.js to connect to the Discord API.

For a most advanced version in TypeScript, please check out Aelia.

Features

  • All basic music bot commands, included skip prompting (based on the 40% of users connected to the voice channel, after 4 users).
  • An echo command, because, why not?
  • Clean code, easy to modify. Fully modular and classbased.
  • Full Music Handler interface and caching, make sure she replies 'smartly'!

Requirements

  • git command line (Windows|Linux|MacOS) installed
  • node Version 8.1.0 or higher
  • ffmpeg: npm install --global ffmpeg-binaries
  • node-opus: npm install node-opus (alternatively you can use opusscript, but it's very bad for production, has memoryleaks and stream/quality issues).
  • A good network connection.

Downloading

In a command prompt in your projects folder (wherever that may be) run the following:

git clone https://github.com/kyranet/Sneyra

Once finished:

  • In the folder from where you ran the git command, run cd Sneyra and then run npm install
  • Rename config.json.example to config.json
  • Edit config.json and enter your bot token and the YouTube Search API token.
  • NEVER UPLOAD THIS FILE WITH YOUR TOKENS ANYWHERE, TO DO SO, YOU ARE LETTING OTHER PEOPLE USE THE TOKEN TO DESTROY ALL THE GUILDS YOUR BOT IS IN. IF YOU DID, RESET YOUR TOKEN IN DISCORD'S APPLICATION PAGE.

sneyra's People

Contributors

codacy-badger avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar ethothemodder avatar kyranet avatar officialpiyush avatar pyrotechniac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sneyra's Issues

extend undefined

I get this error:
C:\Users\roberob\Downloads\Sneyra-master\node_modules\klasa\src\lib\extensions\KlasaGuild.js:3
module.exports = Structures.extend('Guild', Guild => {
^

TypeError: Cannot read property 'extend' of undefined
at Object. (C:\Users\roberob\Downloads\Sneyra-master\node_modules\klasa\src\lib\extensions\KlasaGuild.js:3:29)
at Module._compile (internal/modules/cjs/loader.js:738:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
at Module.load (internal/modules/cjs/loader.js:630:32)
at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
at Function.Module._load (internal/modules/cjs/loader.js:562:3)
at Module.require (internal/modules/cjs/loader.js:667:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (C:\Users\roberob\Downloads\Sneyra-master\node_modules\klasa\src\index.js:7:14)
at Module._compile (internal/modules/cjs/loader.js:738:30)

No Command To Add Admin And DJ roles/ members

Since I Was Refferting ur bot, i realised that this bot had permission levels 5 & 6 for DJ and Administrators, But no Command to set em!

Ik this repo is now depericiated with launch of V3 which is private! But Still.......

TypeError: Client.defaultPermissionLevels.add is not a function

/app/src/Sneyra.js:9

	.add(5, (msg) => msg.member && msg.guild.settings.dj && msg.member.roles.has(msg.guild.settings.dj), { fetch: true })

	 ^


TypeError: Client.defaultPermissionLevels.add is not a function

at Object.<anonymous> (/app/src/Sneyra.js:9:3)

    at Module._compile (internal/modules/cjs/loader.js:689:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

    at Module.load (internal/modules/cjs/loader.js:599:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

    at Function.Module._load (internal/modules/cjs/loader.js:530:3)

    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)

    at startup (internal/bootstrap/node.js:283:19)

    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

^ i recieve this. I guess it's a bug.

Outdated packages


> [email protected] install /home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native
> node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build

node-pre-gyp ERR! Tried to download(404): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v72-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, glibc) (falling back to source compile with node-gyp) 
node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v72-linux-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, glibc) (falling back to source compile with node-gyp) 
gyp: Call to 'sh liblzma-config.sh "/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/build" "/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:203:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-54-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64"
gyp ERR! cwd /home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native
gyp ERR! node -v v12.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:203:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
node-pre-gyp ERR! System Linux 4.15.0-54-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native
node-pre-gyp ERR! node -v v12.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node --module_name=lzma_native --module_path=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bots/.npm/_logs/2019-07-12T15_23_05_364Z-debug.log
gyp: Call to 'sh liblzma-config.sh "/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/build" "/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/deps/xz-5.2.3.tar.bz2"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
➜  amy git:(master) ✗ gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:203:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.15.0-54-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64/lzma_native.node" "--module_name=lzma_native" "--module_path=/home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native/binding-v3.0.8-node-v72-linux-x64"
gyp ERR! cwd /home/bots/.npm-global/lib/node_modules/ffmpeg-binaries/node_modules/lzma-native
gyp ERR! node -v v12.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

Is this maintained ?

Hi, title, if so I get:

TypeError: klasa.Client.defaultPermissionLevels.add is not a function
    at Object.<anonymous> (d:\Github\Sneyra\index.js:6:6)
    at Module._compile (module.js:632:14)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Function.Module.runMain (module.js:676:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

at this line.

Meanwhile I will be reading klasa's docs, also very clean code.

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.