Giter Site home page Giter Site logo

Comments (9)

whuybrec avatar whuybrec commented on June 2, 2024

You don't need to use that html file. Check the contents of private.py in "Other" directory. Fill those in with the required IDs as I mentioned. Run main.py and it should work. Let me know if you have any other problems with this.

from minigamesbot.

left-second avatar left-second commented on June 2, 2024

Hi, thanks for your response. I have added the token, my user id and bot id but when running main.py I get the following errors:

Traceback (most recent call last):
File "C:\Users\User\Minigamesbot\main.py", line 1, in
from minigamesbot import MiniGamesBot
File "C:\Users\User\Minigamesbot\minigamesbot.py", line 7, in
from Commands.minigames import blackjack_command, chess_command, connect4_command, quiz_command, hangman_command,
File "C:\Users\User\Minigamesbot\Commands\minigames\checkers_command.py", line 3, in
from Minigames.checkers.checkers import Checkers
File "C:\Users\User\Minigamesbot\Minigames\checkers\checkers.py", line 6, in
from checkers.game import Game
ModuleNotFoundError: No module named 'checkers'

from minigamesbot.

whuybrec avatar whuybrec commented on June 2, 2024

That error means that you have not installed the necessary packages to run the bot.
Run the following command in the project directory:
pip install requirements.txt

from minigamesbot.

left-second avatar left-second commented on June 2, 2024

Reran requirements.txt and also tried doing them individually: python-chess, pillow, aiohttp, pydealer, discord, numpy, gpiozero, dblpy
Requirements already satisfied.

from minigamesbot.

whuybrec avatar whuybrec commented on June 2, 2024

It seems like I forgot to include that library in requirements.txt, my bad. Try this command to install checkers lib:
pip install imparaai-checkers

from minigamesbot.

left-second avatar left-second commented on June 2, 2024

It looks like we're getting closer. The import errors have disappeared thanks to you with the checkers installation.
Now when I run the command, it returns these errors:

Loading database...
Loading files...
Traceback (most recent call last):
File "C:\Users\User\Minigamesbot\main.py", line 6, in
bot = MiniGamesBot("!")
File "C:\Users\User\Minigamesbot\minigamesbot.py", line 18, in init
self.on_startup()
File "C:\Users\User\Minigamesbot\minigamesbot.py", line 45, in on_startup
on_startup()
File "C:\Users\User\Minigamesbot\Other\variables.py", line 176, in on_startup
json1_file = open('Data/prefixes.json')
FileNotFoundError: [Errno 2] No such file or directory: 'Data/prefixes.json'
[Finished in 3.0s with exit code 1]

from minigamesbot.

whuybrec avatar whuybrec commented on June 2, 2024

Create a file that's called prefixes.json at that location. Any other FileNotFoundErrors can be resolved doing that. I also suggest you do some python tutorials as are basic errors. You can analyse the code then too and make adjustments if you want.

from minigamesbot.

left-second avatar left-second commented on June 2, 2024

I'll give this a last attempt. It seems the errors can't be solved without looking further into the code and making adjustments.

Loading database...
Loading files...
Traceback (most recent call last):
File "C:\Users\User\Minigamesbot\main.py", line 6, in
bot = MiniGamesBot("!")
File "C:\Users\User\Minigamesbot\minigamesbot.py", line 18, in init
self.on_startup()
File "C:\Users\User\Minigamesbot\minigamesbot.py", line 45, in on_startup
on_startup()
File "C:\Users\User\Minigamesbot\Other\variables.py", line 178, in on_startup
Private.prefixes = json.loads(json1_str)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

from minigamesbot.

left-second avatar left-second commented on June 2, 2024

I've tried numerous times and I can't get it to work so I'll leave it here. You can close the issue if there's nothing to add.

from minigamesbot.

Related Issues (5)

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.