Code Monkey home page Code Monkey logo

armabuddy's Introduction

armabuddy

Barely functional bi-directional bridge between WormNET and Discord.

To start bot: python bot.py >> log 2>&1 &

Required non-default Python modules:

BOT SETTINGS

Settings is located inside wa_settings.py

class WA_Settings:
    # GAMELIST
    WA_Gamelist = {
        'interval': 10,  # WormNET game list query interval in seconds.
        'urls': [
            'http://wormnet1.team17.com/wormageddonweb/GameList.asp?Channel=AnythingGoes',  # T17 WormNET
            'http://wormnet.net/wormageddonweb/GameList.asp?Channel=AnythingGoes'  # Community server
        ]
    }

    WA_IRC = {
        'hostname': 'wormnet1.team17.com',
        'port': 6667,
        'username': 'Discord',
        'password': 'PHILCARLISLE'[::-1],
        'snooper': 'WebSnoop',
        'reply_message': 'This is a bot. I forward messages between Discord and WormNet. Feel free to'
                         ' join https://discord.gg/UBRBhk6 to meet all other wormers on discord!',
        'help_message': r'\bHelp is also available from the W:A community via Discord. _ _ _ _ _ _ _ _ _ _ _ _ _'
                        r' \BYou can join the \wWorms Armageddon \Bserver here:'
                        r' \Rhttps://\rdiscord.gg/UBRBhk6'.replace('_', '\N{NO-BREAK SPACE}'),
        'channels': ['anythinggoes', 'help'],
        'ignore': [  # WormNET usernames whose messages should not be forwarded to discord
            'WormsLeague',  # Spammer
            'CorujaBOT'     # League spammer
        ]
    }

    # DISCORD
    WA_Discord = {
        'token': '[discord-token]',
        'http_redir_url': 'http://redirect-http-to-wa.com:17012',
        'embed_color': 0xffa300,
        'embed_icon': 'https://cdn.discordapp.com/emojis/501802399565086720.png?size=32',
        'guilds': {
            # Worms Armageddon (formally Dōjō)
            416225356706480128: {  # Discord Server ID
                'gamelist': 783363290557579305,  # Discord channel ID to add the game list embed to
                'channels': {
                    783002654501634058: 'anythinggoes',  # Discord channel ID that will mirror WormNET AnythingGoes channel
                    783362534451314718: 'help'  # Discord channel ID that will mirror WormNET Help channel
                },
                'wormnet_channel_settings': {
                    'anythinggoes': 'Pf,Be',
                    'help': 'Tf'
                }
            }
        }
    }

    # HTTP Redir server
    WA_HTTP_Redir = {
        'host_ip': '0.0.0.0',
        'host_port': 17012,
        'server_headers': {'Server': ''}
    }

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.