Git Product home page Git Product logo

better-discord-ranking-system's Introduction

I'm Chrissy (Tomato), mainly a Discord Bot Developer! Working since 2017 on Bots ๐Ÿš€

I have quitted the tomato area and now work on a hobby project called "Mivator" My new Discord: https://discord.gg/5dUb7M2qCj


What happend with the Milrato Bot-Shop?

I stopped working on any bot shop related topics, due to lack of time and motivation. However my old admin (xenix) continued it: https://discord.gg/milratoshop feel free to join!


  • ๐Ÿ”ญ When I spend time on my PC, I either game, code or watch YouTube. Elsewise I am working IRL or spending time with my new Familiy & Friends!

  • ๐ŸŒฑ Iโ€™m currently coding in TypeScript, JavaScript and C#. My fav. dbs are SQL based.

  • โ“ I am in love with coding Discord Bots, I also love helping!.


SUPPORT ME, OG-Milrato Development and Mivator!

You can support me by...

Credits

You can freely use any projects of me, for non-commercial use, as long as you credit my github account / discord server / discord account.


Some History-Info: Old Account, old Habits, old Life:

better-discord-ranking-system's People

Contributors

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

better-discord-ranking-system's Issues

AUTO REWARD ROLES on levelup

before the line 200 (where LEVELUP() is) (of ranking.js)
add this code

//array for each role to grant for specfic ROLE
const roleadd = [
  {
    "level_to_add": "4",
    "role_id": "754663978050912267"
  },
  {
    "level_to_add": "14",
    "role_id": "442355791412854784"
  }
]
//loop for every role object of roleadd Array
for(const roletoadd of roleadd){
  //if the NewLevel equals to some level_to_add from the object
  if(newLevel == Number(roletoadd.level_to_add)) {
    //add the Role
    message.member.roles.add(roletoadd.role_id).catch(e=>console.log("Failed adding Role"));
  }
}

PLEASE ADD RANK USER

I am new with coding bots and I am so happy to see this coding for leveling bots, I just don't understand what is needed for a user to get the rank card because it always say "PLEASE ADD RANK USER" after the command is inputted. Do I need to change something? Do I need to add something? Btw the additional codes that is being pinned how do I put it?

Hope you understand and kindly guide me. Btw I'm so honored and proud to use your codes! Thank you.

max levels?

whats the max amount of levels for this system?
I asked it cuz I though I could incorporate this system in my own bot (under development)

issues on starting

console :

node v12.16.1
๎บง 

Updating package configuration

--> npm install
npm WARN deprecated node-pre-gyp@0.15.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

> better-sqlite3@7.2.0 install /home/runner/better-discord-ranking-system/node_modules/better-sqlite3
> prebuild-install || npm run build-release

prebuild-install WARN install /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/runner/better-discord-ranking-system/node_modules/better-sqlite3/build/Release/better_sqlite3.node)

> [email protected] build-release /home/runner/better-discord-ranking-system/node_modules/better-sqlite3
> node-gyp rebuild --release

make: Entering directory '/home/runner/better-discord-ranking-system/node_modules/better-sqlite3/build'
  TOUCH b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
  ACTION deps_sqlite3_gyp_locate_sqlite3_target_extract_sqlite3 b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
  TOUCH Release/obj.target/deps/locate_sqlite3.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
deps/sqlite3.target.mk:183: recipe for target 'Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o' failed
make: *** [Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o] Error 4
rm b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
make: Leaving directory '/home/runner/better-discord-ranking-system/node_modules/better-sqlite3/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:314:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 5.4.0-1042-gcp
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /home/runner/better-discord-ranking-system/node_modules/better-sqlite3
gyp ERR! node -v v12.22.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-release: `node-gyp rebuild --release`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build-release 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/runner/.npm/_logs/2021-05-04T09_34_24_565Z-debug.log
npm WARN [email protected] license should be a valid SPDX license expression

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || npm run build-release`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the better-sqlite3@7.2.0 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/runner/.npm/_logs/2021-05-04T09_34_27_045Z-debug.log
exit status 1


Package operation failed.

please help me , thanks

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.