tuna / gdanmaku-server Goto Github PK
View Code? Open in Web Editor NEWWeb-based danmaku server
License: GNU General Public License v3.0
Web-based danmaku server
License: GNU General Public License v3.0
line 27 and line 28
NOT buttom
_RIGHT_*
DM_POSITIONS = {'fly', 'top', 'bottom'}
DM_POSITION_TRANS = {u'飞过': 'fly', u'顶部': 'top', u'底部': 'bottom'}
diff --git a/gdanmaku/wechat.py b/gdanmaku/wechat.py
index a64fb58..0ef4503 100644
--- a/gdanmaku/wechat.py
+++ b/gdanmaku/wechat.py
@@ -96,16 +96,16 @@ def api_wechat_handle():
if ch_name is None:
return make_reply(
- FromUserName, ToUserName, u"还没有加入频道或者超时了 T_T")
+ FromUserName, ToUserName, "还没有加入频道或者超时了 T_T")
channel = cm.get_channel(ch_name)
if ch_key is None:
ch_key = ''
if channel is None:
- return make_reply(FromUserName, ToUserName, u"频道已經关闭了 T_T")
+ return make_reply(FromUserName, ToUserName, "频道已经关闭了 T_T")
if not channel.is_open and not channel.verify_pub_passwd(ch_key):
- return make_reply(FromUserName, ToUserName, u"密码错误 T_T")
+ return make_reply(FromUserName, ToUserName, "密码错误 T_T")
if ch_pos is None:
ch_pos = 'fly'
没有对弹幕的最少字数进行限制,可以发射空弹幕。
1.敏感词过滤
2.添加后台管理系统
3.对用户权限的限制(如限制颜色、区域)
感谢开发
After installed all dependents, I run webserver.py
, it complains at the title.
Than I use systemctl to start redis.service
, then webserver.py
can execute finally, so do not omit this step in the document please.
弹幕中可插入HTML。
使用<script>
标签可在页面上注入并运行javascript。
如题,现有的微信端功能操作十分不顺手(从我在社团活动的使用反馈得知)。看了眼微信公众平台的文档,感觉写的像样点应该不是很难。代码的话,如果没人肯弄的话,我可以抽时间写。现在想问的是,如果改进的话,应该有哪些功能?是直接把现有的东西改得user-friendly一点还是再加一点东西?
请问我如何通过企业微信自建的应用来发射弹幕吗?
如题,在微信发送弹幕时,似乎直接走的是 channel.new_danmaku(danmaku) ,使得微信端发的弹幕绕过了审核直接发送。我自己试着在里面加了个 need_exam 的判断,似乎可以解决问题。(其实我并不会Python,自己改是依葫芦画瓢,有问题请轻喷QWQ(之前发到 DanmaQ 那里了真是尴尬==||))
刚刚随便写写wiki。。英文不好请见谅:sob:
As this program uses redis,sqlite(right?) and WSGIServer. So there are a lot of config. But all of them are hardcoded in scripts. It is a disaster if I want to run it in OpenShift or other environment different with the hardcoded ones. So I advise this as a feature to abstract all configure into one file, then if I want to run it with other configure, I just need to change one file and it would be very easy by then.
就是怎么让用户向微信发送内容以后,通过弹幕显示出来,谢谢
啊啊啊啊啊,求救啊
add rate limit
求大神解答。
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.