Giter Site home page Giter Site logo

itschasa / luxurynitro-reseller Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 6.0 73 KB

A Discord Bot used to resell credits from luxurynitro.com, using it's API.

Home Page: https://luxurynitro.com

License: GNU Affero General Public License v3.0

Python 100.00%
discord discord-nitro discord-nitro-sniper nitro nitro-sniper nitro-sniper-discord

luxurynitro-reseller's Introduction

LuxuryNitro Reseller

A Discord Bot used to resell credits from luxurynitro.com, using it's API.

Setup

  1. Download and install Python 3.9 or a more recent version.
  2. Download this repo and install dependancies (pip install -r requirements.txt).
  3. Setup your config in config.yml
  4. If you don't want to use English, replace lang.yml with your language found in the langs folder.
  5. Run using python main.py

Updating

To update the bot:

  1. Download the new version as a zip, and extract it to a new folder.
  2. Copy your old config into the new folder, but have it as a different name.
  3. Compare the two configs, and see if there are any new fields/data you need to fill in for the new version.
  4. Once everything is filled out, remove the old config, and make sure the name it set to config.yml.
  5. Copy everything inside of the data folder.
  6. Restart the bot using python main.py or equivalent.

Languages

If you would like to use a different language for the bot, replace your lang.yml file with your languages file, found in the "langs" folder.

If your language isn't in there, then you will have to translate yourself. We are adding more translations as soon as we can.

If you would like to contribute, pull requests are highly appreciated!

Issues / Bugs

Report all bugs in the Issues tab, thanks!

Contributing

All and any pull requests are appreciated, however I cannot say whether they will be accepted or not.

Suggestions

Please open an issue, explaining your suggestion, and how it would help the project!

luxurynitro-reseller's People

Contributors

imdavide avatar invalidlenni avatar itschasa avatar ratrexxx avatar xx-moonwalker-xx 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

Watchers

 avatar  avatar  avatar  avatar

luxurynitro-reseller's Issues

Error connecting to LuxuryNitro API: Unauthenticated.

C:\Users\Administrator\Desktop\LuxuryNitro-Reseller-main>main.py
Coded with <3 by chasa | https://github.com/itschasa/LuxuryNitro-Reseller
If you have any issues, create an issue using the link above. :D

Connecting to LuxuryNitro API...
Error connecting to LuxuryNitro API (https://luxurynitro.com/api/v1): Unauthenticated.
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x00000297BC561EA0>
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in del
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed
RuntimeError: Event loop is closed

C:\Users\Administrator\Desktop\LuxuryNitro-Reseller-main>

queue bug?

users who aren't anonymous are shown anonymous on the queue; this only happened when i switched hosting

Idk about this. I did enable "Presence intent" and "server members intent"

Coded with <3 by chasa | https://github.com/itschasa/LuxuryNitro-Reseller
If you have any issues, create an issue using the link above. :D

Connecting to LuxuryNitro API...
Setting hit webhook...
Logging into Discord...
[2023-12-20 18:28:15] [INFO ] discord.client: logging in using static token
Traceback (most recent call last):
File "C:\Users\Gaming\Downloads\LuxuryNitro-Reseller-1.2.0\main.py", line 475, in
asyncio.run(startup())
File "C:\Users\Gaming\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\Gaming\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Gaming\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 684, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\Gaming\Downloads\LuxuryNitro-Reseller-1.2.0\main.py", line 473, in startup
await client.start(config.discord_token, reconnect=True)
File "C:\Users\Gaming\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\client.py", line 778, in start
await self.connect(reconnect=reconnect)
File "C:\Users\Gaming\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\client.py", line 704, in connect
raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x0000017392A579B0>, 3284.25)]']
connector: <aiohttp.connector.TCPConnector object at 0x000001739170C740>

cant import config from utils

ImportError: cannot import name 'config' from 'utils' (/home/container/.local/lib/python3.11/site-packages/utils/init.py)

error when stored on OneDrive

C:\Users*\OneDrive\Desktop\Token Bot>python main.py
Traceback (most recent call last):
File "main.py", line 9, in
import utils
File "C:\Users*
\OneDrive\Desktop\Token Bot\utils_init_.py", line 1, in
from utils import config_loader
File "C:\Users*\OneDrive\Desktop\Token Bot\utils\config_loader.py", line 40, in
class config:
File "C:\Users*
\OneDrive\Desktop\Token Bot\utils\config_loader.py", line 41, in config
discord_admins: list[int]
TypeError: 'type' object is not subscriptable

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.