Giter Site home page Giter Site logo

mirandabohm / discord_steam_interface Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 98 KB

A bot for the popular gaming platform Discord. The intention is to relay current program activity, including active window and other information (which is typically overlooked by Steam, another gaming platform), to a specified server.

Python 100.00%
discord-py discord steam-api

discord_steam_interface's Introduction

A Steam-Interfacing Discord Bot built in Python

This project creates a bot intended to discover and display a Discord user's current activity. It first checks for an active session in Steam, a major gaming platform. If an active session is found, the name of the active game will be displayed as the bot's status. Additionally, the player's status on Discord will be updated to match their status on Steam, in accordance with the table below:

STEAM STATUS STEAM STATE DISCORD STATUS
'Offline' 0 'offline'
'Online' 1 'online'
'Busy' 2 'dnd'
'Away' 3 'idle'
'Snooze' 4 'idle'
'Looking to trade' 5 'online'
'Looking to play' 6 'online'

If no active Steam session is found, information about the user's currently active window will be returned instead.

Preview

Example display for active Steam session, with game underway. Example Usage

Example display for active session in a program outside of Steam.
Example Usage

Requirements

(0) Python 3.5 or higher

(1) Discord.py

(2) A Steam account. Create here: https://store.steampowered.com/join

(3) a Steam ID, obtainable only after a Steam account is created. Go here to create a Steam account: After account creation, follow instructions here to find the assigned Steam ID: https://support.steampowered.com/kb_article.php?ref=1558-QYAX-1965

(4) a Steam API Key. Note that at least $5.00 USD must be spent on Steam before a key can be generated. https://steamcommunity.com/dev/apikey

Note: the API key be viewed in the Steam client under View > Settings. Download the client here: https://store.steampowered.com/about/

(5) a Discord bot token, which can be created in the Discord Developer portal: https://discordapp.com/developers/applications/

Preparation

In order to run the bot, a Discord server must be created. Follow the instructions here to create a server: https://support.discordapp.com/hc/en-us/articles/204849977-How-do-I-create-a-server-

A bot "application" must be created to run our session. Follow the instructions here: https://discordpy.readthedocs.io/en/latest/discord.html

Installation

To check for Python on your system, enter python --version into the command line. A response such as Python 2.7.16 indicates proper installaiton. A result such as 'python' is not recognized as an internal or external command, operable program, or batch file' implies the need for installation or re-installlation.

To install the Discord.py library, enter the following: py -3 -m pip install -U discord.py

discord_steam_interface's People

Contributors

mirandabohm avatar upquark00 avatar

Watchers

 avatar

discord_steam_interface's Issues

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.