Git Product home page Git Product logo

dga-auto-claim's Introduction

Discord-AutoMessage πŸ“±

A robust and versatile solution for automated social interactions through Python.

Installation ⚑

  1. Open cmd.
  2. cd into your project directory.
  3. Run the following commands below to make a subtree.
cd C:/PathToMyProject

git remote add -f Discord-AutoMessage https://github.com/NathanRLiu/Discord-AutoMessage

git merge -s ours --no-commit --allow-unrelated-histories Discord-AutoMessage/main

git read-tree --prefix=discAutoMsg/ -u Discord-AutoMessage/main

git commit -m "Merge Discord-AutoMessage as a subdirectory"
  1. Run $ git pull -s subtree Discord-AutoMessage main to pull new changes
  2. *Make sure you move creds.py from Discord-AutoMessage to your main project directory(PathToMyProject)

You can import from a python file within PathToMyProject by using import discAutoMsg.discord_automessage as discAutoMsg .

Other Installation Method ⚑

  1. Download the ZIP from the GitHub Repository.
  2. Extract the ZIP.
  3. Move the files to the same directory as your project.

Directions ❗

  1. Make sure you put your email and password in the config.py folder, and double check the code you have downloaded because you don't want your sensitive data leaked
  2. You can now import the functions of the module by simply calling import discord-automessage
  3. After importing the module, you can now reference its functions by calling discord-automessage.functionName, for example: discord-automessage.sendMessage(channelID,"Hello World!")

All Functions πŸ—ΊοΈ

sendMessage(daChannelID, daMessage)

  • daChannelID is a string which is passed as the ID of the channel.
  • daMessage is a string which is passed as the content of the message.

sendReply(daChannelID, daMessage, msgToReply)

  • daChannelID is a string or int which is passed as the ID of the channel.
  • daMessage is a string which is passed as the content of the message.
  • msgToReply is a string or int which is the messageID of the message to reply to

getMessages(daChannelID, daRange)

  • daChannelID is a string which is passed as the ID of the channel.
  • daRange is an int which denotes how many messages you want returned.

Usage Example πŸ“‚

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.