Hi, I am facing a problem
Hi, i tried to run bot.py but got this error, may i know how to solve it? Thanks
C:\EinsteinBot-master>python -u bot.py
Traceback (most recent call last):
File "C:\EinsteinBot-master\bot.py", line 3, in
Hi, i tried to run bot.py but got this error, may i know how to solve it? Thanks
C:\EinsteinBot-master>python -u bot.py Traceback (most recent call last): File "C:\EinsteinBot-master\bot.py", line 3, in import discord ModuleNotFoundError: No module named 'discord' @jckli
I've solved that but got this error instead ;(
C:\Users\ACER\EinsteinBot>pip install discord.ui Requirement already satisfied: discord.ui in c:\users\acer\appdata\local\programs\python\python39\lib\site-packages (5.1.6)
C:\Users\ACER\EinsteinBot>python bot.py
Traceback (most recent call last):
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\bot.py", line 606, in _load_from_module_spec
spec.loader.exec_module(lib)
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\ACER\EinsteinBot\bot.py", line 21, in
Hi, im going through the same issue as well and have no clue what to do lol
Hi, i tried to run bot.py but got this error, may i know how to solve it? Thanks
C:\EinsteinBot-master>python -u bot.py Traceback (most recent call last): File "C:\EinsteinBot-master\bot.py", line 3, in import discord ModuleNotFoundError: No module named 'discord' @jckli
are u running it on vsc?
Hey so i've done everything i could do and the solution i found that work for me was to use this command:
pip3 install -r requirements.txt
and then try running it after
Hey so i've done everything i could do and the solution i found that work for me was to use this command:
pip3 install -r requirements.txt
Thanks, this worked and the bot is now online. But when i run any commands it doesnt work and showed errors. You have this problem?

and then try running it after
@vDucky Tried many ways sstill have error as shown in the picture above. Below is the error code in powershell when i run /help
PS C:\Users\ACER\EinsteinBot> python -u bot.py Bot is online Ignoring exception in command <discord.commands.SlashCommand name=help>: Traceback (most recent call last): File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\commands\core.py", line 94, in wrapped ret = await coro(arg) File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\commands\core.py", line 721, in _invoke await self.callback(self.cog, ctx, **kwargs) File "C:\Users\ACER\EinsteinBot\cogs\slashCommands.py", line 17, in help_slash await callCommand(info.Information.help, self, ctx) File "C:\Users\ACER\EinsteinBot\core\utils.py", line 48, in callCommand await command(ctx) File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\ext\commands\core.py", line 486, in call return await self.callback(self.cog, context, *args, **kwargs) # type: ignore File "C:\Users\ACER\EinsteinBot\cogs\info.py", line 33, in help embed.set_author(name="EinsteinBot", icon_url=self.bot.user.avatar.url) AttributeError: 'NoneType' object has no attribute 'url'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\bot.py", line 512, in process_application_commands await ctx.command.invoke(ctx) File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\commands\core.py", line 261, in invoke await injected(ctx) File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\commands\core.py", line 100, in wrapped raise ApplicationCommandInvokeError(exc) from exc discord.commands.errors.ApplicationCommandInvokeError: Application Command raised an exception: AttributeError: 'NoneType' object has no attribute 'url'
Hey so i've done everything i could do and the solution i found that work for me was to use this command: pip3 install -r requirements.txt
Thanks, this worked and the bot is now online. But when i run any commands it doesnt work and showed errors. You have this problem?
yes, if u looked at one of the other threads, its apparently a bug they need to fix with the cheinstein parceling
Hi guy the bot is working just fine for me what i did like below
1st login to your discord dev and do all the below as given instruction in readme
- Go to Discord Developer Portal website and create a new application by clicking on New Application.
- After creating the application, click the application and copy the
Application IDby clicking on Copy and save it for later. - Then on the left sidebar, click Bot.
- Create a new bot by clicking on Add Bot.
- Copy the
tokenof the bot by clicking on Copy and save it for later.
** important copy and keep your bot token and application id **
then
- Download a web browser extension that allows you to download cookies.
- Chrome: EditThisCookie
- Firefox: Cookie-Editor
install the extension based what browser you're using.
- Go to Chegg.com and sign in.
Ones sign in click the extension icon

then click the circle red part it will export the cookies then create cookies.txt file inside the place where the code is and paste this cookie inside and save.

then go to what is my user agent website on the browser that you copy the cookie. The website called WhatMyUserAgent we will only need the user agent from this site. Save this user agent somewhere as it is going to be used later.

press copy and keep in a notepad for now
now you should have total of 4 important stuff which is
- Bot token
- Application id
- cookie.txt
- user agent
now what you have to do is since you'all would have download the repo can skip 1st step
- Clone this repository.
- Go into the folder that you cloned and create a new file called
config.json.

- Copy the following into the file:
{
"prefix": "THE BOTS PREFIX GOES HERE (ANYTHING YOU WANT)",
"token": "THE BOTS TOKEN GOES HERE (NOT THE CLIENT ID)",
"userAgent": "YOUR USER AGENT GOES HERE (REFER TO STEP 4 FROM CHEGG SETUP)"
}

before you run the command you have to install the requirement files using this command
pip install -r requirements.txt or pip3 install -r requirements.txt
then invite the bot to your discord server
https://discord.com/oauth2/authorize?client_id=YOURAPPIDHERE&scope=applications.commands%20bot&permissions=139586751552
at your app id here paste your application id you save before and invite the bot to the server
Thats it! Run the bot in your command line from the folder you cloned using:
python -u bot.py
@Raymond9266 @vDucky
Hi, I understand that it works, however when I search up a question for it, it comes back with an error. @Dineshomapathi
@vDucky Hi when you install pip3 install -r requirements.txt did you encounter any problem ? since mine I use /search (url) and your machine have GIT https://git-scm.com/ installed ? due to pip3 install -r requirements.txt got few requirement using GIT to retrieve some library
I restarted all over from the beginning and it is still continuing with the same issue. This is what I am getting in terminal. @Dineshomapathi
I get these when my bot run.. Not showing complete answer, and in many time write something was wrong
I get these when my bot run.. Not showing complete answer, and in many time write something was wrong
Hi. Is your bot at this time working?
I get these when my bot run.. Not showing complete answer, and in many time write something was wrong
Hi. Is your bot at this time working?
The bot (my personal bot) works perfectly for all the questions I throw at it. There are some specific questions that do not work (one being the answer type mentioned here #1 ), however most work.