Coder Social home page Coder Social logo

aexol's Introduction

Look at that endless amount of computers and digital bitstreams. Aren't they beautiful and fascinating?




aexol's People

Stargazers

 avatar  avatar

Watchers

 avatar

aexol's Issues

Switch base package from `discord.py` to `pycord`

According to my personal investigation,

I found the goal that supports slash(/) commands on the Discord input form is not suitable with discord.py because of its short official documentation whereas the very popular alternative package pycord supports more abstract and easy wrapping about new features like slash commands, buttons, and many other things that I have to accomplish.

Switching with pycord, the new works I have to do are under below:

  • slash commands with a sufficient amount of descriptions
  • useful help features
  • easy user interactions with buttons and selection bars
  • changing legacy code to perfectly suitable with pycord (Most part is compatible with that, but there are some to be fixed like ctx.reply(...) to ctx.respond(...).

KRW Major indexes chart error

When a user executes to show some KRW market indexes when the is market officially closed, Every data shows normally only except for the chart. (That chart picture says "It's before the markets open")

image

I assume the reason is the suggested code below which is in the https://github.com/x3onkait/AEXOL/blob/main/features/finance/indexes.py, Line 141.

"graph_image_url"      : f"https://ssl.pstatic.net/imgfinance/chart/main/{index}.png?sidcode={time.time() * 1000}"  # live chart

This data in the code links the chart image URLs dynamically depending on the time when the user executes the commands. But by my assumption, It seems invalid when the market is officially closed because the parameter is the time.

So I suggest a fix as a pseudocode form like below;

if time == market_open:
   (abbr..)
   "graph_image_url"      : f"https://ssl.pstatic.net/imgfinance/chart/main/{index}.png?sidcode={time.time() * 1000}"  # live chart
else: #closed 
   "graph_image_url"      : f"https://ssl.pstatic.net/imgfinance/chart/main/{index}.png"  # the most recent and available chart (full)
   (and send data)

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.