Git Product home page Git Product logo

avaire-node's Introduction

TeamCity Simple Build Status AvaIre Version AvaIre Code Coverage Discord GitHub

AvaIre AvaIre

About AvaIre

AvaIre is a multipurpose Discord bot made for fun, written in Java 8, using the JDA library.

Main features

  • Music streaming from YouTube, SoundCloud, Twitch etc.
  • Custom music playlists that you can play anytime
  • Moderation commands (Ban, kick, slowmode)
  • Search for comics and reaction gifs
  • Extended server functionality (Welcome messages, server and user info)
  • High level of customization
    • Changing messages on a per-server basis
    • Change the languages Ava uses
    • Create custom aliases for existing commands
    • Change the prefix ava uses on a per-module basis
  • And more, check the full command reference for all the commands!

Visit our website for more information.

Deploy AvaIre on Heroku

You can deploy in a simple way to Heroku using the button below.

Deploy to Heroku

Before deploying, read the configuration guide, aswell as the guide regarding hosting with Heroku.

Contributing

Thank you for considering contributing to AvaIre! The contribution guide can be found in the AvaIre documentation.

License

AvaIre is open-sourced software licensed under the GNU General Public License v3.0.

Third Party Licenses

AvaIre relies on the following projects:

Name License
JDA (Java Discord API) Apache License 2.0
LavaPlayer - Audio player library for Discord Apache License 2.0
google-gson Apache License 2.0
Apache Commons Apache License 2.0
SnakeYAML Apache License 2.0
Prometheus Apache License 2.0
DialogFlow SDK (Previusly api.ai) Apache License 2.0
MySQL Connector/J GNU General Public License v2.0
logback-classic Eclipse Public License v1.0 and
GNU Lesser General Public License version 2.1
Sentry SDK for Java BSD 3-clause "New" or "Revised" License
jsoup: Java HTML Parser MIT License
emoji-java MIT License
EvalEx - Java Expression Evaluator MIT License
Reflections Do What The F*ck You Want To Public License

Discord server
AvaIre support server: https://avairebot.com/support

avaire-node's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

avaire-node's Issues

Can not send empty message

If the bot gets added to a new server/guild and someone in the guild tries to use a command that uses the language files, the bot will response with "Can not send empty message", this is most likely due to the use of the triple equals when comparing the local to null, when the default database value for locals is undefined.

Poll not working

When issuing the poll command, it just says "Loading Poll" forever. When changing the environment from "production" to "development" in the configuration, this is what I get in the console:

info: Unhandled promise: Promise { <rejected> { Error: Bad Request (Unknown Emoji) at Request.callback (C:\Bots\REL\AvaIre\Bot\node_modules\superagent\lib\node\index.js:698:17) at IncomingMessage.<anonymous> (C:\Bots\REL\AvaIre\Bot\node_modules\superagent\lib\node\index.js:922:12) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:974:12) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickDomainCallback (internal/process/next_tick.js:128:9) original: null, response: Response { domain: null, _events: {}, _eventsCount: 0, _maxListeners: undefined, res: IncomingMessage { _readableState: [Object], readable: false, domain: null, _events: [Object], _eventsCount: 4, _maxListeners: undefined, socket: [Object], connection: [Object], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, headers: [Object], rawHeaders: [Object], trailers: {}, rawTrailers: [], upgrade: false, url: '', method: null, statusCode: 400, statusMessage: 'BAD REQUEST', client: [Object], _consuming: true, _dumped: false, req: [Object], text: '{"code": 10014, "message": "Unknown Emoji"}', read: [Function], body: [Object] }, request: Request { domain: null, _events: [Object], _eventsCount: 2, _maxListeners: undefined, _agent: false, _formData: null, method: 'PUT', url: 'https://discordapp.com/api/v6/channels/372077623926456321/messages/378595899229732864/reactions/tickYes%3A319985232306765825/@me', _header: [Object], header: [Object], writable: true, _redirects: 0, _maxRedirects: 5, cookies: '', qs: {}, qsRaw: [], _redirectList: [], _streamRequest: false, req: [Object], protocol: 'https:', host: 'discordapp.com', _callback: [Function], res: [Object], response: [Circular], _timeout: 0, called: true }, req: ClientRequest { domain: null, _events: [Object], _eventsCount: 4, _maxListeners: undefined, output: [], outputEncodings: [], outputCallbacks: [], outputSize: 0, writable: true, _last: true, upgrading: false, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedHeader: {}, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Object], connection: [Object], _header: 'PUT /api/v6/channels/372077623926456321/messages/378595899229732864/reactions/tickYes%3A319985232306765825/@me HTTP/1.1\r\nHost: discordapp.com\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: DiscordBot (https://github.com/qeled/discordie, v0.11.0) (Windows_NT 10.0.15063; x64) node/6.11.4 openssl/1.0.2l\r\nAuthorization: Bot MzYzMzU0MjAwOTAzNzc4MzI0.DM_V2g.WB6w44Jg4MzpHGh-mXpfw62seOw\r\nConnection: close\r\nContent-Length: 0\r\n\r\n', _headers: [Object], _headerNames: [Object], _onPendingData: null, agent: [Object], socketPath: undefined, timeout: undefined, method: 'PUT', path: '/api/v6/channels/372077623926456321/messages/378595899229732864/reactions/tickYes%3A319985232306765825/@me', _ended: true, parser: null, res: [Object] }, links: {}, text: '{"code": 10014, "message": "Unknown Emoji"}', body: { code: 10014, message: 'Unknown Emoji' }, files: {}, buffered: true, headers: { date: 'Fri, 10 Nov 2017 17:24:56 GMT', 'content-type': 'application/json', 'content-length': '43', connection: 'close', 'set-cookie': [Object], 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ratelimit-limit': '1', 'x-ratelimit-remaining': '0', 'x-ratelimit-reset': '1510334697', via: '1.1 google', 'alt-svc': 'clear', server: 'cloudflare-nginx', 'cf-ray': '3bbab54d7a1e63e5-FRA' }, header: { date: 'Fri, 10 Nov 2017 17:24:56 GMT', 'content-type': 'application/json', 'content-length': '43', connection: 'close', 'set-cookie': [Object], 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ratelimit-limit': '1', 'x-ratelimit-remaining': '0', 'x-ratelimit-reset': '1510334697', via: '1.1 google', 'alt-svc': 'clear', server: 'cloudflare-nginx', 'cf-ray': '3bbab54d7a1e63e5-FRA' }, statusCode: 400, status: 400, statusType: 4, info: false, ok: false, redirect: false, clientError: true, serverError: false, error: { Error: cannot PUT /api/v6/channels/372077623926456321/messages/378595899229732864/reactions/tickYes%3A319985232306765825/@me (400) at Response.toError (C:\Bots\REL\AvaIre\Bot\node_modules\superagent\lib\node\response.js:106:13) at Response.setStatusProperties (C:\Bots\REL\AvaIre\Bot\node_modules\superagent\lib\node\response.js:183:12) at new Response (C:\Bots\REL\AvaIre\Bot\node_modules\superagent\lib\node\response.js:42:8) at IncomingMessage.<anonymous> (C:\Bots\REL\AvaIre\Bot\node_modules\superagent\lib\node\index.js:918:22) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:185:7) at endReadableNT (_stream_readable.js:974:12) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickDomainCallback (internal/process/next_tick.js:128:9) status: 400, text: '{"code": 10014, "message": "Unknown Emoji"}', method: 'PUT', path: '/api/v6/channels/372077623926456321/messages/378595899229732864/reactions/tickYes%3A319985232306765825/@me' }, accepted: false, noContent: false, badRequest: true, unauthorized: false, notAcceptable: false, forbidden: false, notFound: false, type: 'application/json', setEncoding: [Function: bound ], redirects: [] }, status: 400, code: 10014 } }: Error: Bad Request (Unknown Emoji)

I see that it says "code: 10014 } }: Error: Bad Request (Unknown Emoji)". I have read that it might have something to do with unicode formatting maybe?

I am using Microsoft Windows 10
Latest Nodejs & NPM

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.