diff --git a/.gitignore b/.gitignore index bf8f1e97..bf38d7cc 100755 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ __pycache__ *.csv *env *conflict* - +*syncthing* diff --git a/app/.syncthing.questions.py.tmp b/app/.syncthing.questions.py.tmp deleted file mode 100644 index 0a301bbd..00000000 --- a/app/.syncthing.questions.py.tmp +++ /dev/null @@ -1,28 +0,0 @@ -import os -import wikipedia -import wolframalpha - -import help_methods - - -def answer_question(message): - """ - answer_question(question) - - Submits a request to the wolfram API and returns the response - If no answer is found, tries wikipedia. If that fails, apologizes - """ - - if len(message.split()) > 1: - client = wolframalpha.Client(os.getenv("wolfram_token")) - question = " ".join(message.split()[1:]) - try: - res = client.query(question) - return next(res.results).text - except Exception: - try: - return wikipedia.summary(question, sentences=5) - except Exception: - return "Sorry, I'm unable to answer that" - - return help_methods.get_help_message("message") diff --git a/helm/.syncthing.values.yaml.tmp b/helm/.syncthing.values.yaml.tmp deleted file mode 100644 index 883ca3de..00000000 --- a/helm/.syncthing.values.yaml.tmp +++ /dev/null @@ -1,95 +0,0 @@ -# Default values for dragon-bot. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 1 - -image: - repository: ldooks/dragon-bot - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "122" - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: false - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "" - -podAnnotations: {} - -podSecurityContext: {} - # fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 - -ingress: - enabled: false - className: "" - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - hosts: - - host: chart-example.local - paths: - - path: / - pathType: ImplementationSpecific - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -volumes: - name: dale-pics - type: nfs - server: 192.168.1.119 - path: /volume1/nas/docker_storage/default-syncthing-claim-pvc-24ed3294-4330-466f-bc4b-70b1fe192d5f/syncthing-configs/Dropbox Mirror/Photos/dale - mountPath: /tmp/dale - -env: - token: discord_token - ffxiv_token: ffxiv_token - gitlab_token: gitlab_token - wolfram_token: wolfram_token