Giter Club home page Giter Club logo

gdanmaku-server's People

Contributors

berryboy2012 avatar bigeagle avatar dependabot[bot] avatar dotkrnl avatar felixonmars avatar harry-chen avatar jiegec avatar lackofdream avatar nanpuyue avatar summershrimp avatar sztsian avatar xavieryao avatar xianbei233 avatar z4yx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gdanmaku-server's Issues

Wrong spelling in shared.py

line 27 and line 28
NOT buttom
_RIGHT_*
DM_POSITIONS = {'fly', 'top', 'bottom'}
DM_POSITION_TRANS = {u'飞过': 'fly', u'顶部': 'top', u'底部': 'bottom'}

charset bug

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'

解决 wechat.py 经常出问题的一个思路

如题,自带的微信端功能并没有利用到webapi的相关内容,而是直接对弹幕频道等底层对象进行操作,不仅使微信端与网页端行为不一致(如 #17 ,以及为限速机制做准备的token等),同时在修改代码时容易被遗忘(如迁移到py3.7后 #26 出现的问题 #28 )。我觉得可以在webapi与底层操作之间加一层抽象,同时微信端不再直接操作底层对象。这样也方便以后加入其他形式的客户端支持。唯一的问题就是这工作吃力不讨好,我最近在尝试着这么做,不出意外的话这几天应该能有个大致的成品。不知道你们怎么看。PS:毕竟这是你们做的东西,我还是希望尽可能不自己岔个分支出去:)

功能建议

1.敏感词过滤
2.添加后台管理系统
3.对用户权限的限制(如限制颜色、区域)
感谢开发

.

弹幕中可插入HTML。
使用<script>标签可在页面上注入并运行javascript。

有没有改进自带的微信端功能的想法呀

如题,现有的微信端功能操作十分不顺手(从我在社团活动的使用反馈得知)。看了眼微信公众平台的文档,感觉写的像样点应该不是很难。代码的话,如果没人肯弄的话,我可以抽时间写。现在想问的是,如果改进的话,应该有哪些功能?是直接把现有的东西改得user-friendly一点还是再加一点东西?

微信端发送弹幕绕过了审核功能

如题,在微信发送弹幕时,似乎直接走的是 channel.new_danmaku(danmaku) ,使得微信端发的弹幕绕过了审核直接发送。我自己试着在里面加了个 need_exam 的判断,似乎可以解决问题。(其实我并不会Python,自己改是依葫芦画瓢,有问题请轻喷QWQ(之前发到 DanmaQ 那里了真是尴尬==||))

[RFE]Abstract all the config into one file

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.

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.