Coder Social home page Coder Social logo

leveling emror about bocchibot HOT 6 CLOSED

slavyandesu avatar slavyandesu commented on May 20, 2024
leveling emror

from bocchibot.

Comments (6)

github-actions avatar github-actions commented on May 20, 2024

Hello! Thanks for submiting the issue, we will respond to you ASAP.

from bocchibot.

nisxlinux avatar nisxlinux commented on May 20, 2024

Hello! Thanks for submiting the issue, we will respond to you ASAP.

kalo done bilang

from bocchibot.

VideFrelan avatar VideFrelan commented on May 20, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.
Screenshot pada 2020-12-25 22-37-33

Ini bot Bocchi kah? ato bot lain tapi ngambil leveling dari Bocchi?

from bocchibot.

VideFrelan avatar VideFrelan commented on May 20, 2024

Kalau belom bisa juga, coba ganti berikut:

case 'leveling':
if (!isRegistered) return await bocchi.reply(from, ind.notRegistered(), id)
if (!isGroupMsg) return await bocchi.reply(from, ind.groupOnly(), id)
if (!isGroupAdmins) return await bocchi.reply(from, ind.adminOnly(), id)
if (ar[0] == 'enable') {
if (isLevelingOn) return await bocchi.reply(from, ind.levelingOnAlready(), id)
_leveling.push(chat.id)
fs.writeFileSync('./database/leveling.json', JSON.stringify(_leveling))
await bocchi.reply(from, ind.levelingOn(), id)
} else if (ar[0] == 'disable') {
_leveling.splice(chat.id, 1)
fs.writeFileSync('./database/leveling.json', JSON.stringify(_leveling))
await bocchi.reply(from, ind.levelingOff(), id)
} else {
await bocchi.reply(from, ind.wrongFormat(), id)
}
break

from bocchibot.

nisxlinux avatar nisxlinux commented on May 20, 2024

sm aj format salah

from bocchibot.

nisxlinux avatar nisxlinux commented on May 20, 2024

dh done
thanks

from bocchibot.

Related Issues (20)

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.