Skip to content

Chat CLI feito em Python

License

Notifications You must be signed in to change notification settings

Thigos/PyChat-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyChat-CLI

Dependências

Pyrebase

Chat Rápido, Simples e Seguro, feito para rodar no terminal usando Python + Firebase Database.

Configuração Firebase

Substitua sua firebaseConfig no Database.py

firebaseConfig = {
  apiKey: "api-key",
  authDomain: "project-id.firebaseapp.com",
  databaseURL: "https://project-id.firebaseio.com",
  projectId: "project-id",
  storageBucket: "project-id.appspot.com",
  messagingSenderId: "sender-id",
  appID: "app-id",   
}

Iniciar Chat

Execute no terminal python Pychat.py

'python' não é reconhecido

Inicie o terminal em C:\Users\USER\AppData\Local\Programs\Python\PythonXX-xx
Execute no terminal python LOCAL_PYCHAT-CLI/Pychat.py

Arquivos

  • Pychat.py:
    Primeiro arquivo a ser executado: Configura o nome de usuário (bin/data/UserName.cfg) e inicia o ChatBox.py e InputBox.py

  • ChatBox.py:
    Segundo arquivo a ser executado: Enviar e receber mensagens e comandos específicos

  • InputBox.py:
    Terceiro arquivo a ser executado: Caixa para digitar textos ¯_(ツ)_/¯