Coder Social home page Coder Social logo

dippyshere / stw-daily Goto Github PK

View Code? Open in Web Editor NEW
50.0 4.0 18.0 105.84 MB

Discord bot that collects Fortnite: STW daily rewards, research points, and more using an auth token.

Home Page: https://sites.google.com/view/stwdaily/home

License: GNU General Public License v3.0

Python 100.00% Procfile 0.01%
fortnite discord python discord-bot save-the-world epic-games daily-rewards bot stw-daily hacktoberfest

stw-daily's Issues

Resistance does not exist in current_levels

2022-09-04T01:24:25.783109+00:00 app[worker.1]: Ignoring exception in command research:
2022-09-04T01:24:25.785358+00:00 app[worker.1]: Traceback (most recent call last):
2022-09-04T01:24:25.785381+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/ext/commands/core.py", line 184, in wrapped
2022-09-04T01:24:25.785382+00:00 app[worker.1]: ret = await coro(*args, **kwargs)
2022-09-04T01:24:25.785384+00:00 app[worker.1]: File "/app/ext/research.py", line 442, in research
2022-09-04T01:24:25.785384+00:00 app[worker.1]: await self.research_command(ctx, False, authcode, not optout)
2022-09-04T01:24:25.785391+00:00 app[worker.1]: File "/app/ext/research.py", line 316, in research_command
2022-09-04T01:24:25.785392+00:00 app[worker.1]: current_levels = await research_query(ctx, self.client, auth_info, slash, final_embeds, json_response)
2022-09-04T01:24:25.785398+00:00 app[worker.1]: File "/app/ext/research.py", line 230, in research_query
2022-09-04T01:24:25.785400+00:00 app[worker.1]: if current_levels["offense"] + current_levels["fortitude"] + current_levels["resistance"] + current_levels["technology"] == 480:
2022-09-04T01:24:25.785414+00:00 app[worker.1]: KeyError: 'resistance'
2022-09-04T01:24:25.785416+00:00 app[worker.1]:
2022-09-04T01:24:25.785416+00:00 app[worker.1]: The above exception was the direct cause of the following exception:
2022-09-04T01:24:25.785417+00:00 app[worker.1]:
2022-09-04T01:24:25.785428+00:00 app[worker.1]: Traceback (most recent call last):
2022-09-04T01:24:25.785444+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/ext/commands/bot.py", line 344, in invoke
2022-09-04T01:24:25.785444+00:00 app[worker.1]: await ctx.command.invoke(ctx)
2022-09-04T01:24:25.785446+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/ext/commands/core.py", line 951, in invoke
2022-09-04T01:24:25.785446+00:00 app[worker.1]: await injected(*ctx.args, **ctx.kwargs)
2022-09-04T01:24:25.785457+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.10/site-packages/discord/ext/commands/core.py", line 193, in wrapped
2022-09-04T01:24:25.785457+00:00 app[worker.1]: raise CommandInvokeError(exc) from exc
2022-09-04T01:24:25.785469+00:00 app[worker.1]: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'resistance'

i believe this is due to that at level 0 epic games removes these fields if they have no levels

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.