Skip to content

Commit

Permalink
Added Quotas module activation check (dm send) + ignore all data files
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Dec 14, 2020
1 parent 0736153 commit 8d3ae58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ func (s *Selenium) SendMessage(user, message string) (bool, error) {
if s.Config.BotConfig.Scheduler.CheckTime() == nil {
res, err := s.sendMessageWebDriver(user, message)
if res == true && err == nil {
s.Config.BotConfig.Quotas.AddDm()
if s.Config.BotConfig.Quotas.Activated {
s.Config.BotConfig.Quotas.AddDm()
}
log.Info("Message successfuly sent!")
}

Expand Down
3 changes: 3 additions & 0 deletions data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore all data files
*.csv
*.json

0 comments on commit 8d3ae58

Please sign in to comment.