Skip to content
Website friends system to connect friends from different game sources.
Python HTML JavaScript CSS Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
dist
libs
log
mmofriends
.gitignore
.gitmodules
README.md
celery_worker.sh
clear_cache.sh
mmofriends.py
run.sh

README.md

MMOJunkiesPyFriends

Website community system to connect friends from different gaming sources like Steam, Battlenet and Teamspeak 3 used for https://mmojunkies.net.

Ideas for the future:

  • make a comment feature on all sites/boxes (logged in) to the dev for ideas/improvements
  • statistic and/or ranking feature (lol, starcraft, ...)
  • groups
  • timers
  • message board
  • easy access filter for network selection like OS X dock on the left side

Install needed libraries (debian)

apt-get install python-pip python-dev redis-server libmysqlclient-dev
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r dist/requirements.txt
deactivate

#pip install PyYAML Flask-Babel rauth feedparser Flask Flask-OpenID Flask-Babel celery redis requests numpy Flask-OpenID Flask-Compress Flask-Celery3 celery redis MySQL-python sqlalchemy

### Install TS3 Lib

git clone git://github.com/nikdoof/python-ts3.git libs/python-ts3
source venv/bin/activate
cd libs/python-ts3
python setup.py install
deactivate

Tips and Tricks

### Init GIT Submodules

git submodule foreach git pull
git submodule update --init

Unable to write files to cache errors

If there is a problem caching the external image files, check the permissions on "MMOJunkiesPyFriends/mmofriends/static/cache/"

Generate a new application secret

import os
os.urandom(24) 

### How to start the redis server on OS X

sudo redis-server /opt/local/etc/redis.conf

pip_update.py

Use this script to update all pip packages to the nwewst version. Especially useful, if you installed some libs via apt-get.

# Debian dependencies for pip update
apt-get install libmysqlclient-dev libffi-dev libacl1-dev libssl-dev
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import pip
from subprocess import call

for dist in pip.get_installed_distributions():
    print (":: Checking for %s" % dist.project_name)
    call("pip install --upgrade " + dist.project_name + "", shell=True)

Useful links:

## Used libs

## Planning sandbox: ### Groups

  • Name
  • Description
  • Nethandle (opt)
  • Game (opt)
  • Public (if false, invite only)
  • Timestamp (creation)
  • Members
  • Admins
  • Creator

Message

  • Parent (Messageboard or Group)
  • Content (json data)
  • Timestamp
  • Owner
  • Type (text, appointment, link)

### Timer (Grouping for maps?)

  • Parent (Group or User?)
  • StartTimestamp
  • Duration
  • Owner
  • Public
  • Name
  • Description
  • Persistent (if false, only onetime timer)
  • Colors (json?)
You can’t perform that action at this time.