Giter Club home page Giter Club logo

anischedule's Introduction

Self Taught and Self Loathing

  • Ex-Minecraft mod developer
  • Creator of dozens of unfinished fullstack projects
  • AniList API enthusiast
  • Watcher of all things Hololive

anischedule's People

Contributors

l11k avatar tehnut 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

anischedule's Issues

Queries are not copied to dist on build

Following the instructions to set up: npm install runs fine. Created a .env file (for example, ani.env) in the directory C:\AniSchedule with the specified content. Running npm start creates the following error:

C:\AniSchedule>npm start

[email protected] start C:\AniSchedule
tsc && node dist/AniSchedule.js

internal/fs/utils.js:298
throw err;
^

Error: ENOENT: no such file or directory, open 'C:\AniSchedule\dist\query\Watching.graphql'
at Object.openSync (fs.js:465:3)
at Object.readFileSync (fs.js:368:35)
at Object. (C:\AniSchedule\dist\command\CommandWatching.js:16:28)
at Module._compile (internal/modules/cjs/loader.js:1201:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Module.load (internal/modules/cjs/loader.js:1050:32)
at Function.Module._load (internal/modules/cjs/loader.js:938:14)
at Module.require (internal/modules/cjs/loader.js:1090:19)
at require (internal/modules/cjs/helpers.js:75:18)
at Object. (C:\AniSchedule\dist\command\Command.js:15:1) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\AniSchedule\dist\query\Watching.graphql'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: tsc && node dist/AniSchedule.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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! C:\Users\Plex\AppData\Roaming\npm-cache_logs\2020-07-23T01_30_52_288Z-debug.log

Troubleshooting so far: I've tried the last 5 node.js versions, also tried installed AniSchedule 1.13, 1.14, 1.15, 2.0.0.
Log:
2020-07-23T01_30_52_288Z-debug.log

[Request] Option to include multiple anime IDs

It is quite a pain to include either the IDs or the links themselves multiple times to add them to the watching list. It would be great if either there were an option to include multiple IDs or the entire season altogether (this could be helpful for anime related servers).

The bot itself is pretty good and has a neat display. Hope the above request can be considered.

Error when running on Windows 10 (Discord token is invalid)

(OS is Windows 10)

Everything installs correctly and I have a .env file in the root where the README is with the correct bot token.

But I get an "Error occurred An invalid token was provided".
First image is terminal:
cmd_yVjg1HPzun
Next image is what's inside my .env file:
notepad++_Hw3oIDGADM
Last image is where the .env file is:
explorer_szEfnqgtsE
Should be called bot.env

Stopped working

Hey, the bot was working fine until January 10 2021 but it suddenly stopped announcing, it keeps getting stuck at 'joining'
image

this was the last announcement it made:
image

I dont know where the log files are located but if you need more info please let me know, we really like this bot

Stuck Joining Server

Hey, the bot was working fine until January 10 2021 but it suddenly stopped announcing, it keeps getting stuck at 'joining'
image

this was the last announcement it made:
image

I dont know where the log files are located but if you need more info please let me know, we really like this bot

npm start runs, but stalls?

pi@raspberrypi ~/AniSchedule % npm run build

> [email protected] build
> node script/clean.js && tsc && copyfiles -f src/query/* dist/query

pi@raspberrypi ~/AniSchedule % npm start

> [email protected] start
> node dist/AniSchedule.js

pi@raspberrypi ~/AniSchedule % nodejs --version v12.22.5

After it starts the bot does not come online in discord.

Scheduled Calendar/View Anime Released on X Day

Currently when you use ?aswatching command, you get a list of the animes that will be announced when they release, but it would be really nice if next to each entry in the announcement list, the time/day that the anime releases was listed. For example, next to an entry for Appare-Ranman! it would say "Friday 5:00 AM"

OR advancing the ?asnext command. At the moment, the ?asnext command can be used to get the release date for the next show to release, but in cases like Fridays, there are several anime that release on the same day. When you run the ?asnext command on a Thursday, you will only get a result for an anime like Appare-Ranman! at Friday 5AM. So maybe instead of a calendar, having a command like "?asnext Friday" that would show all of the anime that are releasing on that specific upcoming day.

Either solution would solve my problem of viewing other scheduled anime release times.

Commands not showing up in /

After starting the bot and waiting an hour I'm unable to see the commands in the / menu
I have checked that applications.commands is on in the invite link.
I'm unsure if theres more that I need to do to get this working or not.

Discussion Threads

Discord has now made threads available to bot developers. We can make use of them by creating a new thread for each episode announcement to allow topical discussion of each episode without unwilling users being spoiled just by opening the channel.

I have yet to look closely at the limitations of threads and what the premium features are, though I believe this can be done in a way that is useful to most.

?aswatching breaks when an anime ends

It seems that since the requested Airing Date in the ?aswatching command was added, now whenever an anime ends, it breaks the ?aswatching command until you remove the animes that ended. Hasn't been a big deal, but the annoying part is figuring out what animes ended that were still on the list. Easiest way has been to go into the file where that info is stored, but that can obviously be a hassle.

Can it be changed to automatically remove an anime that does not have a next airing date?

405: Method not allowed

I have a problem with the code.
When I use the permission command, the Discord API gives me "DiscordAPIError: 405: Method Not Allowed".

I don't understand how to fix this..

Change "owner" default to any/role

Trying to figure out of there is a quick way to change it so that this does not require the server owner to change the permission settings before people can use it. Changing the default to "ANY" or a specific role ID?

I would also accept a way of allowing me to remove the server owner and somehow putting in my userID to allow me to be the one to control the permissions setting.

I am hosting my own instance and works fine however I want to add it to another one of the servers I am an admin for and the owner in flakey. Have tried change some things in the defaults but not sure how it works. Any help?

Announcements can sometimes be spammed

(brain dump word vomit)

Happening on the AniList server which uses threads for each show. (not episodic threads, but announcements go to a dedicated show thread).

Very inconsistent. One announcement could be fine, one for a different show the same day could send it 7 times, and another one on the same day could send it 20 times.

Via log: The announcements are only scheduled once but they are announced several times, so the issue appears to be within Scheduler#sendAnnouncement,

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.