samclane / discordia Goto Github PK
View Code? Open in Web Editor NEWMUD (Multi-User Dungeon) for Discord.
License: GNU General Public License v3.0
MUD (Multi-User Dungeon) for Discord.
License: GNU General Public License v3.0
Currently, a different random seed is passed every time the Test Suite is run. This leaves room for some edge cases which cause the tests to fail (ex: all Actors
spawn on a tiny island and can't move). A consistent random
seed needs to be set.
Hey, I know you are just working on this now, and I'm watching keenly :D
There appears to be an issue, and I know it's Mac related, but thought I'd let you know. Apple is only allowing UI functionality to be used in the main thread as of 10.14: https://developer.apple.com/documentation/code_diagnostics/main_thread_checker
I will take a look at running on Ubnt or something else!
Hello samclane,
First congratulations for your Job, I used to play MUD when I was kid, and do this for discord was really nice I appreciated that, I will contribute.
So about the issue, I created everything added OAuth webhook , bot guilds permissions, bot connect to the channel and gets online, but the commands seems to not communicate with server. I Would like to know if you can help? Thanks in advance.
I sent a print of permissions as well.
LOG:
(base) C:\Users\myr0\Documents\Discordia-master>python main.py -W
INFO:Discordia.GameLogic.GameSpace:Generating Map...
INFO:Discordia.GameLogic.GameSpace:Generation finished
INFO:Discordia:Discordia Server has successfully started. Press Ctrl+C to quit.
INFO:discord.client:logging in using static token
INFO:discord.gateway:Shard ID None has sent the IDENTIFY payload.
INFO:discord.gateway:Shard ID None has connected to Gateway: ["gateway-prd-main-wp70",{"micros":50348,"calls":["discord-sessions-prd-2-62",{"micros":48917,"calls":["start_session",{"micros":43065,"calls":["api-prd-main-s00t",{"micros":40619,"calls":["get_user",{"micros":4298},"add_authorized_ip",{"micros":3677},"get_guilds",{"micros":3223},"coros_wait",{"micros":1}]}]},"guilds_connect",{"micros":1,"calls":[]},"presence_connect",{"micros":3025,"calls":[]}]}]}] (Session ID: 3a7e65c17aaa19d245fc62698ca34f0b).
WARNING:discord.state:GUILD_MEMBER_UPDATE referencing an unknown member ID: 749807886582022274. Discarding.
INFO:Discordia.Interface.DiscordServer:Connected successfully: Spum MUD: <749807886582022274>
WARNING:discord.state:GUILD_MEMBER_REMOVE referencing an unknown guild ID: 696852779397939220. Discarding.
I have installed everything using sudo and I am running python 3.7.
Traceback (most recent call last):
File "main.py", line 10, in
from Discordia.Interface.Rendering.DesktopApp import WindowRenderer, update_display
File "/home/pi/Bot/Discordia/Discordia/Interface/Rendering/DesktopApp.py", line 12, in
import pixelhouse as ph
File "/usr/local/lib/python3.7/dist-packages/pixelhouse/init.py", line 2, in
from .canvas import Canvas, load
File "/usr/local/lib/python3.7/dist-packages/pixelhouse/canvas.py", line 2, in
import cv2
File "/usr/local/lib/python3.7/dist-packages/cv2/init.py", line 5, in
from .cv2 import *
ImportError: libcblas.so.3: cannot open shared object file: No such file or directory
Requires Python 3.7+
To install:
pip3 install -r requirements.txt
python3 main.py
When prompted, enter your bot's Discord Token.
*register
*look
FOV
can see.*equipment
*north
, *east
, *south
, *west
] / [*up
, *right
, *down
, *left
]
*inventory
equip
[index
]
unequip
[index
]
*attack
<n
, e
, s
, w
, ne
, se
, sw
, nw
>
direction
is specified, the user will attack*town
town
with no parameters is a debug command to check if you're inside a town or not.inn
store
buy
[index
] (Placeholder)
sell
[index
] (Placeholder)
Sprites - Kenney RPG Urban Pack
When running on Raspbian Stretch, the Discord-Thread quickly throws this exception:
Exception in thread Thread-2:
Traceback (most recent call last):
File "/home/pi/.pyenv/versions/3.7.2/lib/python3.7/asyncio/unix_events.py", line 92, in add_signal_handler
signal.set_wakeup_fd(self._csock.fileno())
ValueError: set_wakeup_fd only works in main thread
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.pyenv/versions/3.7.2/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/home/pi/.pyenv/versions/3.7.2/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/.virtualenvs/discordia/lib/python3.7/site-packages/discord/client.py", line 572, in run
loop.add_signal_handler(signal.SIGINT, lambda: loop.stop())
File "/home/pi/.pyenv/versions/3.7.2/lib/python3.7/asyncio/unix_events.py", line 94, in add_signal_handler
raise RuntimeError(str(exc))
RuntimeError: set_wakeup_fd only works in main thread
This probably requires that the Discord-Thread be the main thread, which is problematic to Quit (as opposed to the OpenCV window, at least).
This issue also seems to be the inverse of Issue #1, which again is odd, considering Mac OS is Unix-based and theoretically should be complaining about the same thing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.