Code Monkey home page Code Monkey logo

amusementclub2.0's Introduction

Amusement Club is a global gacha game for Discord with thousands of cute and fancy cards made by the bot's community. You can get started on any server by typing /claim cards in a bot channel.

Each claim will cost you more ๐Ÿ… tomatoes (in-game currency), using /daily will reset your claim cost and give you extra tomatoes.

  • If you are new, get started here
  • For setting up bot on your server check out this page
  • If you are upgrading from previous version, check out this guide
  • If you are self-hosting a version of this bot, please read Hosting

Invite the bot here. Get your bot issues resolved on the Amusement Cafe support server.

Discord Server

Contributing

After cloning this repository you can run the bot in development mode. Under test/ you can find sample data and a startup script. Please DO NOT commit any changes to those files.

  • Copy test/config.dest.json and remove the .dest to test/config.json
  • Open test/config.json with your preferred text editor and set your bot token and database url (if it is different on your system). By default, the bot will access cards from the Amusement Club CDN.
  • Open Terminal or PowerShell and run npm i to install all dependencies.
  • Run npm i -g nodemon.
  • Run npm start to start the bot. Every time you run the bot directly (without using Ayano) it will run in development mode.

Test out your features and when you are ready make a Pull Request into the feature branch (e.g. cinnabar).

Hosting

Before starting, please do all starting steps from contributing stage.

Make sure you are not violating anything in the LICENSE when you are hosting. You must mention that parts of your bot are licensed under MPL-2.0 on the help/info page of your bot like this:

Parts of the project are licensed under the MPL-2.0 and can be obtained here: https://github.com/Amusement-Cafe/amusementclub2.0/

To host your bot on the small amount of servers, you can just run bot in development mode. However if you need sharding, vote webhooks, and card management support, consider using Ayano.

amusementclub2.0's People

Contributors

dependabot[bot] avatar inlife avatar madebynoxc avatar mj11jm avatar nes370 avatar

Stargazers

 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

amusementclub2.0's Issues

TypeError: Cannot read property 'compressed' of undefined [index.js]

[ERR] TypeError: Cannot read property 'compressed' of undefined
    at C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\index.js:37:50
    at Array.map (<anonymous>)
    at fillCardData (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\index.js:35:31)
    at Object.module.exports.create (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\index.js:47:5)
    at create (C:\Users\Seulgi\Desktop\amusementclub\ayano\modules\amusement.js:23:32)
    at startBot (C:\Users\Seulgi\Desktop\amusementclub\ayano\modules\amusement.js:37:25)
    at C:\Users\Seulgi\Desktop\amusementclub\ayano\core\with.js:41:12
    at C:\Users\Seulgi\Desktop\amusementclub\ayano\core\with.js:17:12
    at Object.<anonymous> (C:\Users\Seulgi\Desktop\amusementclub\ayano\core\with.js:86:12)
    at trigger (C:\Users\Seulgi\Desktop\amusementclub\ayano\core\cmd.js:41:29)
    at Object.input (C:\Users\Seulgi\Desktop\amusementclub\ayano\core\index.js:28:19)
    at Interface.<anonymous> (C:\Users\Seulgi\Desktop\amusementclub\ayano\modules\cli.js:21:19)
    at Interface.emit (events.js:315:20)
    at Interface._onLine (readline.js:329:10)
    at Interface._line (readline.js:658:8)
    at Interface._ttyWrite (readline.js:999:14)

line 35:31 index.js
const ext = x.animated? 'gif' : (col.compressed? 'jpg' : 'png')

Profile Bug

When trying to command ->profile

Issue:
user.js:253:34
const stampString = ${stamp.getFullYear()}.${(stamp.getMonth()+1)}.${stamp.getDate()}

TypeError: Cannot read property 'getFullYear' of undefined
    at Object.<anonymous> (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\commands\user.js:253:34)
    at trigger (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\utils\cmd.js:83:39)
    at Client.<anonymous> (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\index.js:201:19)        
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[ERR] TypeError: Cannot read property 'getFullYear' of undefined
    at Object.<anonymous> (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\commands\user.js:253:34)
    at trigger (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\utils\cmd.js:83:39)
    at Client.<anonymous> (C:\Users\Seulgi\Desktop\amusementclub\amusementClub2.0\index.js:201:19)        
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

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.