Giter VIP home page Giter VIP logo

hoshi's Introduction

Hoshi

A starboard bot written for Discord using Discord.js.

Made by 1Computer and vzwGrey.
Invite Link: Click here!

Features

  • Setting a custom prefix.
  • Starring and unstarring messages via reaction or command.
  • Setting a custom emoji for reactions.
  • Setting a custom starboard channel.
  • Deleting messages from the starboard in case of abuse.
  • Viewing the people who starred a message.
  • Adding positive reputation to users.
  • Viewing local and global stars and reputation.
  • Blacklisting people from using the starboard or adding reputation.

Setup

To setup for personal use:

  • Set up a PostgreSQL database.
  • Fill out the config.json.
  • Run the bot using node . or PM2.

hoshi's People

Contributors

1computer1 avatar novara754 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

Watchers

 avatar  avatar  avatar  avatar  avatar

hoshi's Issues

The bot is private

The invite link at the README.md does not work since the bot is private (only the owner can add it to servers). Are you manually adding servers?

Reactions do not get removed

Reactions currently do not get removed when, e.g. when someone stars their own message.
100% an upstream bug from discord.js v12-dev.

Please disable channel blacklist message

Please disable channel blacklist message.

When someone reacts the star emote on a channel where it is blocked, the bot replies on that channel. And if it's an announcement channel it's even a bigger problem.

Maybe make it in the DMs or something.

Thanks :)

suggestion: auto react star emote

why? Simply because its faster, easier and promotes more usage of utilizing starboard, especially to people who are new to starboard function.
So have a config where bot auto react the starboard emote in specified channel.

Restore command

To do for later: a restore command to restore guild settings, stars, reps, etc. in case of Hoshi leaving and rejoining the server.

Use raw event for reactions

All message reactions would be received with the raw event instead of the messageReactionAdd event, so we should use that.

Starboard queue gets stuck

Every now and then Promises do not ever resolve within the queue.
This makes the queue stuck and making everything not work.
Current solution is to do a manual restart or to clear all queues manually.
No idea what causes it, but it could likely be from Discord's hiccups.

[Enhancement] Star Limit

Hello. This is a request for a feature on the bot: a star limit. For those who don't know, a star limit is basically instead of Hoshi posting every message with one star react on it, you could set however many star reactions are needed before it posts said message to the starboard. It's a feature many other bots with starboard capabilities have, and since this is a bot solely dedicated to a starboard system, it should have this feature.

If I can figure out how to code it, I will probably open up a PR if you guys don't get to it first :P

Thanks :)
Akii#2111

Hoshi startup issues

when attempting to start i Receive the following error

[2020-04-02 10:12:35]: [Postgres]: Connection to database has been established successfully.
[2020-04-02 10:12:36]: [Info]: YardBot#8580 is ready to serve!
[2020-04-02 10:12:36]: [Error]: An unhandled promise rejection occured
[2020-04-02 10:12:36]: [Error]: TypeError: this.client.guilds.values is not a function or its return value is not iterable
    at ReadyListener.exec (/home/discord/hoshi/src/listeners/client/ready.js:18:42)
    at HoshiClient.emit (events.js:323:22)
    at HoshiClient.EventEmitter.emit (domain.js:482:12)
    at WebSocketManager.triggerClientReady (/home/discord/hoshi/node_modules/discord.js/src/client/websocket/WebSocketManager.js:433:17)
    at WebSocketManager.checkShardsReady (/home/discord/hoshi/node_modules/discord.js/src/client/websocket/WebSocketManager.js:417:10)
    at WebSocketShard.<anonymous> (/home/discord/hoshi/node_modules/discord.js/src/client/websocket/WebSocketManager.js:199:14)
    at WebSocketShard.emit (events.js:311:20)
    at WebSocketShard.EventEmitter.emit (domain.js:482:12)
    at WebSocketShard.checkReady (/home/discord/hoshi/node_modules/discord.js/src/client/websocket/WebSocketShard.js:466:12)
    at WebSocketShard.onPacket (/home/discord/hoshi/node_modules/discord.js/src/client/websocket/WebSocketShard.js:438:16)
    at WebSocketShard.onMessage (/home/discord/hoshi/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)
    at WebSocket.onMessage (/home/discord/hoshi/node_modules/discord.js/node_modules/ws/lib/event-target.js:120:16)
    at WebSocket.emit (events.js:311:20)
    at WebSocket.EventEmitter.emit (domain.js:482:12)
    at Receiver.receiverOnMessage (/home/discord/hoshi/node_modules/discord.js/node_modules/ws/lib/websocket.js:801:20)
    at Receiver.emit (events.js:311:20)
    at Receiver.EventEmitter.emit (domain.js:482:12)
    at Receiver.dataMessage (/home/discord/hoshi/node_modules/discord.js/node_modules/ws/lib/receiver.js:436:14)
    at Receiver.getData (/home/discord/hoshi/node_modules/discord.js/node_modules/ws/lib/receiver.js:366:17)
    at Receiver.startLoop (/home/discord/hoshi/node_modules/discord.js/node_modules/ws/lib/receiver.js:142:22)
    at Receiver._write (/home/discord/hoshi/node_modules/discord.js/node_modules/ws/lib/receiver.js:77:10)
    at doWrite (_stream_writable.js:441:12)

Hoshi startup issues

when attempting to start i Receive the following error

Error: Cannot find module 'discord-akairo'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\hoshi\src\util\Extensions.js:1:87)
    at Module._compile (module.js:635:30)
    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)

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.