[BUG] Poll not sent during exercise on Discord
Describe the bug Impossible to start the exercise with docker + Discord channel & bot. The Poll is generating an error in the logs bot is correctly configured and present in the channel. bug happens with Gui enabled, log view is started. When I click on start on GUI interface: "Failed, Token was not provided or is not an integer."
sudo docker run --rm -t --env-file .env -v $(pwd)/MSEL.json:/app/MSEL.json -p 5000:5000 base4sec/t3sf:discord
MSEL config file is: { "#": 1, "Real Time": "07:30 PM", "Date": "Monday 9:40 AM", "Subject": "[URGENT] Ransom Request!", "From": "SOC - BASE4", "Player": "Legal", "Script": "Team, we received a ransom request. What should we do?", "Picture Name": "Base_4_SOC.jpg", "Photo": "https://img2.helpnetsecurity.com/posts2018/aws-s3-buckets-public.jpg", "Profile": "https://foreseeti.com/wp-content/uploads/2021/09/Ska%CC%88rmavbild-2021-09-02-kl.-15.44.24.png", "Poll": "We are checking on it | It is a false positive" }
- Discord Bot - PurpleHackademy TTX#3872 is ready! [✗] ProcessIncidents function [✗] An exception of type AttributeError occurred. Arguments: ("'NoneType' object has no attribute 'send'",) Task exception was never retrieved future: <Task finished name='Task-2463' coro=<T3SF.ProcessIncidents() done, defined at /app/T3SF/T3SF.py:174> exception=AttributeError("'NoneType' object has no attribute 'send'")> Traceback (most recent call last): File "/app/T3SF/T3SF.py", line 182, in ProcessIncidents await self.InboxesAuto() File "/app/T3SF/T3SF.py", line 306, in InboxesAuto await self.discord.InboxesAuto(T3SF_instance=self) File "/app/T3SF/discord/discord.py", line 29, in InboxesAuto T3SF_instance.response_auto = await self.SendMessage(T3SF_instance=T3SF_instance, title="⚙️ Fetching inboxes...", description=f"Please wait while we fetch all the inboxes in this server!", color="BLUE") File "/app/T3SF/discord/discord.py", line 223, in SendMessage T3SF_instance.response = await T3SF_instance._ctx.send(embed=discord.Embed(color=colors[color], title = title, description = description), view=view) AttributeError: 'NoneType' object has no attribute 'send'
To Reproduce Steps to reproduce the behavior:
- Click on start in the Gui interface
- In the discord chat "Inboxes fetched! [1]" appears
- then the exercise stop
Expected behavior starting the basic exercise in the discord channel
[ { "#": 1, "Real Time": "07:30 PM", "Date": "Monday 9:40 AM", "Subject": "[URGENT] Ransom Request!", "From": "SOC - BASE4", "Player": "Legal", "Script": "Team, we received a ransom request. What should we do?", "Picture Name": "Base_4_SOC.jpg", "Photo": "https://img2.helpnetsecurity.com/posts2018/aws-s3-buckets-public.jpg", "Profile": "https://foreseeti.com/wp-content/uploads/2021/09/Ska%CC%88rmavbild-2021-09-02-kl.-15.44.24.png", "Poll": "We are checking on it | It is a false positive" } ]
Screenshots
Environment (please complete the following information): NAME="CentOS Linux" VERSION="8" ID="centos" ID_LIKE="rhel fedora" Python 3.6.8